• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using hbm.xml and annotation in the same project

 
Eyal Golan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I've started working on an application that uses hibernate.
The mapping uses xml (the *.hbm.xml files).

I am considering moving to annotations instead.
By moving to annotations, I mean that for new tables I will use it instead of the hbm.xml.

now, I'm not sure I should, and would happily get your insight.
The main reason on NOT doing that is that I will have mixed metadata mapping, which may cause development hell.

moving the old ones to annotations is another possibility, but a dangerous one (I need to set many unit test before).

And actually, the first question, should have been: can I even mix the two ways of mapping?

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic