Register / Login
Object Relational Mapping
posted 7 years ago
I am using hibernate as persistence provider for
. So generally I use annotations defined in JPA spec i.e OnetoMany ,
etc. I have seen in some places people using CollectionOfElements.
can somebody tell me the use of @org.hibernate.annotations.CollectionOfElements?
I am having trouble understanding how it works?
I checked the documentation which simply says Annotation used to mark a collection as a collection of elements or a collection of embedded objects.
under what scenario will we use this annotation?
is this similar to @OneToMany , @ManyToMany annotations?
Where will one go for it instead of
? Do we need any other meta-data also for CollectionOfElements?
Problems in JPA with a Collection of Dates
@primarykeyjoincolumn for OnetoMany and ManytoOne?