[jboss-user] [JBoss Seam] - seam-gen problem with generate-ui and repeated types
jcg3
do-not-reply at jboss.com
Fri Feb 8 20:00:21 EST 2008
I am designing from the entities out and the seam-gen generate-ui is incredibly helpful. Great stuff.
I've noticed a minor thing that I have questions on.
I believe this is a bug... anyone care to confirmation and/or tell me where to log the issue to be fixed in a future release?
The problem is best shown with a contrived example. Suppose I'm building a model of a house and the doors in the house. Here are two simple entities:
@Entity public class House {
@Id private Long id;
@OneToOne private Door frontDoor;
@OneToOne private Door backDoor;
...
}
@Entity public class Door {
@Id private Long id;
private String description;
...
}
When I run seam-gen's generate-ui command, I get a HouseHome.java file that has the following annotations:
@In(create = true)
DoorHome doorHome;
@In(create = true)
DoorHome doorHome;
The obvious problem is that the generator assumes that both Door objects are the same type. Incidentally, hibernate does hbm2ddl on this type of association properly (there are two columns and two foreign keys created in the db).
Thoughts? Am I missing something or a custom mapping that I can provide the seam utility?
Thanks,
Jason
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128032#4128032
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128032
More information about the jboss-user
mailing list