-->
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.  [ 1 post ] 
Author Message
 Post subject: How much abstraction is required on top of Hibernate?
PostPosted: Tue Feb 08, 2005 10:07 pm 
Newbie

Joined: Fri Jan 28, 2005 8:58 am
Posts: 9
Hi,

I recently came upon this issue in my project and would like to know your expert opinion/experience in this regard.

My project has two applications that want to use the same set of objects, although at different depths of the object tree (some might want the whole object graph, while others might want it lazily).

One suggestion that was put up to maintain the DAO classes (the ones that actually talk to Hibernate) was to create a wrapper (or DAO) around Hibernate to abstract the concept of Hibernate to the two applications. This means that we might have to end up sacrificing the Session concept as the wrapper does not want to expose the concept of a Session to the applications, as it is a Hibernate-specific concept. This means the wrapper either has to provide full object graphs, or methods that would return partial object graphs at different depths (which can probably get messy as the depths change or combinations change).

My question is: is such a wrapper on Hibernate necessary? Is there a need to use an Hibernate Session without knowing that it is an Hibernate session? How have some of your implementations been?

Any thoughts would be greatly appreciated.

Thank you.


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

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.