Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Object Relational Mapping question

 
Dave Van Even
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi;
I don't know exactly where to ask this question (there are so many forums here) but I know some of you guys here can give some insight.
Simple question: If you use an ORM tool would you
a) use it in your domain model (business logic)
b) use it in DAO's that your domain model uses

It looks interesting to really seperate the ORM stuff into DAO's but somehow it's strange
opinions ?
Thank you
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use it under a layer of DAO's. That way the DAO's just magically produce objects, and you don't have to worry about how they do it.
Kyle
 
Dave Van Even
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks I got convinced enough now to go that way
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic