Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Xml maapings or Annotations

 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q1) which is more standard way of mapping Entities either using XML or Annotations?Which is option industry prefer?

Q2) Is it necessary to learn both the approaches?
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) I prefer the annotations as the mapping in closer to the actual code and it is less prone to errors. However you should use what you agreed upon with your team.
2) No but it is handy to know them both.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic