-->
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: how to use ReattachVisitor.reattachCollection();
PostPosted: Wed Nov 23, 2005 2:11 pm 
Senior
Senior

Joined: Mon Aug 22, 2005 5:45 am
Posts: 146
Hibernate version:3.1 rc3

in 3.0.5 the method was

Code:
protected void reattachCollection(PersistentCollection collection, CollectionSnapshot snapshot)


and I could easily call it from my custom visitor:
reattachCollection(coll, coll.getCollectionSnapshot());

NOW, with 3.1rc3, mehod signature has changed to

Code:
protected void reattachCollection(PersistentCollection collection, CollectionType type)


where on earth do I get the CollectionType that corresponds to my collection?

I was unable to find it even using the underlying CollectionPersister...


Top
 Profile  
 
 Post subject: CollectionType: how do I get it from a PersistentCollection
PostPosted: Thu Nov 24, 2005 12:06 pm 
Senior
Senior

Joined: Mon Aug 22, 2005 5:45 am
Posts: 146
[changing subject might help getting an answer...]

_________________
Please don't forget to give credit, if my posting helped to solve your problem.


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.