• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to map value-type to collection

 
kwame Iwegbue
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!