aspose file tools
The moose likes Object Relational Mapping and the fly likes How to map value-type to collection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "How to map value-type to collection" Watch "How to map value-type to collection" New topic
Author

How to map value-type to collection

kwame Iwegbue
Ranch Hand

Joined: Sep 02, 2000
Posts: 197
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 ]

Who dares, wins! (SAS motto)
 
 
subject: How to map value-type to collection
 
Threads others viewed
Pre-select collection of options (drop-downs)
need help with cascade delete
detached entity passed to persist
Problem deleting value-type object from Collection in Hibernate
CGLIB Exception
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com