• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[Ask] What kinds of Hibernate do you use?

 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All..

I just one a little question..
same as topic, What kinds of hibernate do you ussually use?..
Hibernate Core or Hibernate Annotation?..

and which one is matched for a big scope Spring Hibernate application?..
Hibernate Core or Hibernate Annotation?..

is it possible to use both of Hibernate Annotation and Hibernate Core in our application?..

Thank's in advance
 
Francois Nadeau
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For new projects we use annotations. Older projects (before Hibernate 3.0) use XDoclet.

This way we only have one place to look when modifying the code (don't need to search through xml files).

Sorry, I don't know about Spring.

Yes it is possible to use both classes that have annotation and hbm files in the same project, but for maintenance consideration I would stay away from this approach.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic