• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

When to use hibernate?

 
ellie spring
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


When is the proper time to use hibernate?
Or when is the appropriate situation to use it?

Thanks,
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answers will vary on this one, since there is not always one best situation for a specific persistence mechanism, but I would think if one is doing a new development and it involves CRUD (create/retrieve/update/delete) operations the entities.

 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best time to use Hibernate ( or any other ORM) is when the requirements of the system match the abilities of the framework.

All ORMs have problems, you just need to pick the one that best suits your needs. Hibernate is very handy for many real world systems.
 
Ogeh Ikem
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like Pat Farrell said, use Hibernate when the requirements of your system match the abilities of the framework. For example, use Hibernate if your system will benefit from things like lazy loading, automatic versioning and first level cache. If all you're doing is periodically performing a few CRUD operations, you don't need to import a huge framework for that; you can simply use the JDBC API.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ogeh Ikem wrote:Like Pat Farrell said, use Hibernate when the requirements of your system match the abilities of the framework. For example, use Hibernate if your system will benefit from things like lazy loading, automatic versioning and first level cache. If all you're doing is periodically performing a few CRUD operations, you don't need to import a huge framework for that; you can simply use the JDBC API.

Or something like Querulous
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic