`
o_o_0
  • 浏览: 15865 次
  • 性别: Icon_minigender_1
  • 来自: 济南
文章分类
社区版块
存档分类
最新评论

should we use annotations?

阅读更多

should we use annotations?

If your answer is yes to the following questions then you can use annotations in your project.

1.Do you have the flexibility to use Java 5 Environment?
2.Do you have the knowledge of which production database you are going to use?

If yes, you can use annotations, this brings in strong coupling. Inorder to support multiple databases, it is better to have the mapping information in a seperate xml file rather than using annotations. You can easily have multiple xml files each specific for a particular database rather than having a different sets of source codes.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics