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.  [ 4 posts ] 
Author Message
 Post subject: Collection and client
PostPosted: Wed Nov 12, 2003 10:31 am 
Beginner
Beginner

Joined: Fri Oct 17, 2003 4:11 am
Posts: 40
I have a class with a Set (1-2-many association). When I read this class i've got an exception...
java.lang.NoClassDefFoundError:
net/sf/hibernate/collection/ODMGCollection

It's right that i must provide hibernate2.jar to all the client that read my class (that have onboard the Set collection)?

Thanx for any response!
Gio


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 12, 2003 11:47 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Yes, unless you snapshot your object tree.
Hibernate use it's own collection implementation to allow lazy loading etc...

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 12, 2003 11:54 am 
Beginner
Beginner

Joined: Fri Oct 17, 2003 4:11 am
Posts: 40
Thanks for your reply!
There is a way to don't do this?! In this way i bind the server and the client implementation!
Maybe a quick way to convert the Set to a standard Set implementation...

Gio


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 12, 2003 4:45 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
gifor wrote:
Maybe a quick way to convert the Set to a standard Set implementation...


You have to do it your own way. And you cannot use all-delete-orphan anymore.

_________________
Emmanuel


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