Win a copy of Functional Design and Architecture this week in the Functional programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Migrating OJB to Hibernate

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic