String tableName;
try {
//tableName = ((Inode) Identifier.class.newInstance()).getType();
tableName = "identifier";
} catch (Exception e) {
throw new DotDataException("Unable to instantiate identifier",e);
}
HibernateUtil dh = new HibernateUtil(Identifier.class);
String sql = "SELECT {" + tableName + ".*} from " + tableName + " " + tableName + ", tree tree, inode "
+ tableName + "_1_ where tree.parent = ? and "+ tableName+"_1_.type ='"+tableName+"' and tree.child = " + tableName + ".id and " + tableName