• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

using hbm.xml and annotation in the same project

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