Forums Register Login

CollectionOfElemetns

+Pie Number of slices to send: Send
Hi All,

I am using hibernate as persistence provider for EJB. So generally I use annotations defined in JPA spec i.e OnetoMany , ManyToMany 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 OneToMany? Do we need any other meta-data also for CollectionOfElements?


thanks,
krishan
F is for finger. Can you stick your finger in your nose? Doesn't that feel nice? Now try this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


Reply locked
This thread has been viewed 1053 times.
Similar Threads
Entity Relationships
CollectionOfElements
Problems in JPA with a Collection of Dates
@ManayToMany
@primarykeyjoincolumn for OnetoMany and ManytoOne?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 04:58:22.