-->
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.  [ 6 posts ] 
Author Message
 Post subject: Hibernate Collections
PostPosted: Tue May 18, 2004 9:36 am 
Newbie

Joined: Tue May 18, 2004 9:32 am
Posts: 2
I'm currently using Hibernate2 in a distributed enironment that implements services via remote EJB calls. My concern is this....We have clients that will need to include the Hibernate jars in their class loaders since Hibernate "sneakily" replaces the java.util.* collections with it's own. Is there a way around this? Can Hibernate be configured to return java.util.* collections instead?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 18, 2004 9:55 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
No

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 18, 2004 10:09 am 
Beginner
Beginner

Joined: Fri Oct 17, 2003 4:11 am
Posts: 40
We use transport classes instead of publish hibernate classes to the client!
So we convert them to decouple the persistence layer and the view layer!
Take a look at http://www.openitnow.org/jbossrad/architecture/persistence_en.html

Gio


Top
 Profile  
 
 Post subject: Hibernate Collections
PostPosted: Tue May 18, 2004 11:31 am 
Newbie

Joined: Tue May 18, 2004 9:32 am
Posts: 2
That's unfortunate...we really didn't want to have to get into a scenario where deep copies were forced...Which is what we would have to do to use transport classes. It's misleading to say that Hibernate supports POJO's.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 18, 2004 11:33 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
You can always implement your own serialization algorithm and replace the proxies with something you like. Just don't use a "null" marker for the edges of the graph.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 18, 2004 11:35 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
BTW, you will need hibernate2.jar, cglib2.jar, odmg.jar, commons-collections.jar and probably commons-logging.jar on the client. It's about 1 MB. We already have a JIRA issue for a "smaller" client-side library, but no one had time yet to look at it.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.