Fórum

Loading Object by ID and Class

Rana Datra, modificado 12 Anos atrás.

Loading Object by ID and Class

New Member Postagens: 5 Data de Entrada: 29/09/11 Postagens Recentes
Greetings,

I wonder if it's possible to load an object from the database only with the given class and the primaryKey. Something like "HibernateUtil.getObject(Class clazz, long primaryKey)". I thing the difficulty here is that the persistence-classes are in different portlets and every one has it's own hibernate-config.

Is there anything like that?