This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes ORM Frameworks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ORM Frameworks" Watch "ORM Frameworks" New topic
Author

ORM Frameworks

Anil Vupputuri
Ranch Hand

Joined: Oct 31, 2000
Posts: 527
Hi,

Does your book mention any pitfalls or antipatterns related ORM frameworks such as Hibernate.

Thanks.


SCJP 1.5, SCEA, ICED (287,484,486)
Bill Karwin
author
Ranch Hand

Joined: Aug 02, 2010
Posts: 32
Hi Anil, your question is related to the question Wouter asked earlier.
http://www.coderanch.com/t/508679/JDBC/java/ORM-Antipatterns

I have a chapter describing how some ORM users confuse "model" with "table," and this confusion impacts their application design. Martin Fowler calls this the Anemic Domain Model: http://martinfowler.com/bliki/AnemicDomainModel.html

The confusion between model and table is pretty common in the Ruby, PHP, Python, and Perl developer communities, but I haven't found this to be as much of a problem in the Java community.

My advise is to decouple the model from the database access object. Treat them as two separate objects.


Bill Karwin is the author of SQL Antipatterns: Avoiding the Pitfalls of Database Programming
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ORM Frameworks
 
Similar Threads
Updation of child table.
Recommend a framework.
Confused about ORM tool selection.
The Life without EJB
Detach Before Transaction Completes