[Logo]
Forums Register Login
Mapping a jdk 1.5 java.util.Collection in hibernate 3
Hi All
My pojo has an object as:

private Collection<Name> diffNames;

where Name is a custom class as follows:
public class Name
{
private String name;
private String surname;
}

So how do i map the diffNames object above in the hibernate mapping?
I recommend using a Hibernate Bag object. a Bag is how Hibernate maps to a Collection object.

Mark
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature


This thread has been viewed 688 times.

All times above are in ranch (not your local) time.
The current ranch time is
Apr 23, 2018 19:20:21.