-->
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.  [ 9 posts ] 
Author Message
 Post subject: Persisting Extended Collections
PostPosted: Sun Dec 11, 2005 3:28 am 
Newbie

Joined: Sun Dec 11, 2005 3:18 am
Posts: 2
Hi,
Is it possible to persist the toPersistAttr attribute below as a collection, since it has no extra attributes to Set, just helper methods? What annotations (or xml) is required to do this? I couldn't find anything, so I suspect the answer is no. Figured it doesn't hurt to ask.

Using a @OneToMany attribute on the get method produces the following exception:
Code:
org.hibernate.AnnotationException: CollectionHelper collection not yet supported

Code:
public class CollectionHelper extends Set<B>
{
  public void helperMethod();
}

public class ToPersist
{
  public CollectionHelper toPersistAttr;
}


Thanks,
- Xavier


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 11, 2005 3:32 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
CustomCollectionType - there is an example in the h3 unit tests.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 3:58 pm 
Newbie

Joined: Sun Jun 18, 2006 11:24 am
Posts: 6
max wrote:
CustomCollectionType - there is an example in the h3 unit tests.


Maybe its not longer there, but could someone point where the a test or example of the CustomCollectionType?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 4:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
why is hibernate3 unit tests not enough for you ? (do a search in your hibernate directory and you will find it)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 4:14 pm 
Newbie

Joined: Sun Jun 18, 2006 11:24 am
Posts: 6
I'm afraid I don't see it.

I just checked out

http://anonsvn.jboss.org/repos/hibernat ... Hibernate3

and searched for

CustomCollectionType

and found nothing. Nor do I see anything in the test subfolder that looks like a test for the CustomCollectionType.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 4:39 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
sorry, search for usercollectiontype

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 4:43 pm 
Newbie

Joined: Sun Jun 18, 2006 11:24 am
Posts: 6
What is the difference between the two?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 5:26 pm 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
usercollectiontype is an interface while the other is a class

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 5:28 pm 
Newbie

Joined: Sun Jun 18, 2006 11:24 am
Posts: 6
Yes I Understand that one is a interface and the other is a class, but the class does not implement the interface. Functionally what is the difference? Why do they both exist?


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