Beginner |
|
Joined: Wed Dec 17, 2008 12:10 pm Posts: 47
|
I'm using Hibernate 3.3.1GA.
My problem is I have a parent class, with a map of child objects. The child objects have relation to another object. I need the index in the map to be a property of the child object's relation property. For instance:
public class Parent {
Map<String, Child> getChildren() {...}
}
public class Child {
public SomeOtherObject getOtherObject() {...}
}
public class SomeOtherObject {
public String getName() {...}
}
I want the index in the children map property on the Parent object to be the name property on the SomeOtherObject. Is this possible?
|
|