-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Newbie question in context of the Martin Fowler article.
PostPosted: Tue Aug 24, 2010 8:12 am 
Newbie

Joined: Tue Aug 24, 2010 8:05 am
Posts: 1
Hi,

In Domain Logic and SQL (http://martinfowler.com/articles/dblogic.html), Martin Fowler talks about 3 styles of interfacing with a database:

1. Transaction Script
2. Domain Model, and
3. Logic in SQL

What I'd like to know is:

1. When employing Hibernate for persistence, which of the above 3 styles is typically used and/or encouraged?
2. Is there any 4th style when using Hibernate?

(In context of Hibernate, substitute HQL in place of SQL above.)

Also, is this point covered in the Manning Hibernate book (2nd edition)?

Many thanks...


PS: I have cross-posted this on Stack Overflow too (http://stackoverflow.com/questions/3555603/newbie-question-on-hibernate-in-context-of-martin-fowler-article). But I'm hoping that Hibernate experts here on this forum would be able to give an authoritative answer.


Top
 Profile  
 
 Post subject: Re: Newbie question in context of the Martin Fowler article.
PostPosted: Tue Aug 24, 2010 2:23 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
in the context of this quite old article it's definitely "2 - domain model", but it's actually an evolution of that as the transaction model coupled with automatic dirty checking and good second-level caches makes it both maintainable and performing well.

About the book, yes reading it would help.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.