掲示板
Loading Object by ID and Class
12年前 に Rana Datra によって更新されました。
Loading Object by ID and Class
New Member 投稿: 5 参加年月日: 11/09/29 最新の投稿
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?
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?