Hello,
When I do a hibernate reverse engineering, my relations are transformed to:
private Set bodies = new HashSet(0);
...
public Set getBodies() {
return this.bodies;
}
public void setbodies(Set bodies) {
this.bodies = bodies;
}
But I’d like to have a more strongly typed collection with JDK5 generics like:
private Set<Body> bodies = new HashSet<Body>(0);
...
public Set<Body> getBodies() {
return this.bodies;
}
public void setbodies(Set<Body> bodies) {
this.bodies = bodies;
}
I saw a similar post where you updated PojoFields.vm and such but I don’t see how I can get the target Type Name (here: Child)
Is there a way to generate it this way automatically or can you indicate how I could change the .vm files to achieve this ?
Thanks.