Hi folks,
i have read some blogs about using custom collection classes in JPA/Hibernate mappings, but all past tries were unsuccessful. I have implemented UserCollectionType (also heard of CustomCollectionType)...
Now e.g. in this article
http://www.javalobby.org/java/forums/m91832311.html
as well as in the test examples coming with Hibernate 3.1 an attribute called 'collection-type' is used in mapping file.
Unfortunately i did not find a corresponding annotation, and i am using JPA/Hibernate annotations throughout the whole application.
So my questions are:
-How can i define a custom collection by using annotations instead of a mapping file?
-Alternatively: Is there a way to use annotations and mapping file together, even for the same entity? I guess not?!?
-Has anyone a working example?
I am using Seam 2.2.0GA, by the way...
Thanks a lot, best regards
Flo