//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
+ "_1_.inode = " + tableName + ".id and tree.relation_type = ?";
Logger.debug(this, "HibernateUtilSQL:getChildOfClassByRelationType\n " + sql + "\n");
dh.setSQLQuery(sql);
Logger.debug(this, "contentlet inode: " + contentlet.getInode() + "\n");
dh.setParam(contentlet.getInode());
dh.setParam(relationshipType);
return (Identifier)dh.load();
}