-->
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: Using Apache Commons Collections
PostPosted: Fri Jan 28, 2005 11:46 am 
Newbie

Joined: Wed Jul 28, 2004 3:20 pm
Posts: 16
I'm trying to persist an object with a map reference. The map implementatino is a DualHashBidiMap from commons-collections. It doesn't seem to behave. Every time I load the map hibernate deletes all of the rows and tries to recreate the map in the database. I assume this is because hibernate is unable to confirm that the map in the hydrated obect contains the data it should.

Is this supported?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 28, 2005 12:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
no.

but some work have been done just recently in hibernate3 cvs that might allow you to do it.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 28, 2005 12:40 pm 
Newbie

Joined: Wed Jul 28, 2004 3:20 pm
Posts: 16
max wrote:
no.

but some work have been done just recently in hibernate3 cvs that might allow you to do it.


Thanks Max.

So is it true then that only java.util Collection mapping is supported? Might be a good note for the FAQ or the docs...

Some of those commons-collections classes are very nice and it would be great if they could be used.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 28, 2005 12:56 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
its already in the docs - at least in Hibernate In Action.

but as i said - custom collection types is AFAIK supported in hibernate3.

_________________
Max
Don't forget to rate


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.