A friendly place for programming greenhorns!
Object Relational Mapping
Mapping a jdk 1.5 java.util.Collection in hibernate 3
Aug 20, 2007 05:24:00
My pojo has an object as:
private Collection<Name> diffNames;
where Name is a custom class as follows:
public class Name
private String surname;
So how do i map the diffNames object above in the hibernate mapping?
Aug 20, 2007 10:45:00
I recommend using a Hibernate Bag object. a Bag is how Hibernate maps to a Collection object.
Beware the other head of science - it bites! Nibble on this message:
Rocket Oven Kickstarter - from the trailboss
This thread has been viewed 716 times.
All times above are in ranch (not your local) time.
The current ranch time is
Jul 18, 2018 12:20:27
Copyright © 1998-2018