Forums Register Login

How to map value-type to collection

+Pie Number of slices to send: Send
I'm having an issue, which seems simple enough, but so far I haven't been able to figure it out. I have a Hibernate POJO Value type class (i.e not an Entity class), which I would like to compose with a few Collection objects. I do not want to make this class an Entity, in order to avoid some complex mappings, plus the class doesn't really have any need for shared references.

I'm having difficulty doing this. Does someone know how?

The value type class is itself mapped as a List, in an Entity POJO.

Here is a sample:



[ July 24, 2007: Message edited by: kwame Iwegbue ]
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 799 times.
Similar Threads
CGLIB Exception
Problem deleting value-type object from Collection in Hibernate
Pre-select collection of options (drop-downs)
detached entity passed to persist
need help with cascade delete
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 02:56:20.