• Post Reply Bookmark Topic Watch Topic
  • New Topic

Migrating OJB to Hibernate  RSS feed

 
sergio martinelli
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I was using Apache OJB ORM, which sent a mapped entity only charged with the ID and a framework's method returned fully charged entity.

i.e. OJB with this two lines of code solve my problem:

QueryByCriteria query = new QueryByCriteria (entity);
Object result = broker.getObjectByQuery (query);

I want to do the same with Hibernate and I can not find how to send the single entity charged with the id and the framework resolve everything and return the object fully charged.

Somebody knows??

thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!