This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Migrating OJB to Hibernate

 
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