Hello,
I wonder if is there possible to use custom collection (instead of hibernate's built-in: set, map, etc.) in one-to-many association. As far as i understand I should use CompositeUserType - but I have no idea how to incorporate my new type into mapping file and one-to-many relation. For exaple suppose we have custom collection
public class FooVector {
// vector of Foos - it does not
// inherite after java Vector.
}
And we have Bar entity,
public class Bar {
private FooVect foos;
}
how can I express one-to-many relation in this case? Member foos is not
a regular property, so i can't use <property> (even if could) so what I can use with my custom FooVectorType?
Any hints?
Artur
|