I am having problems generating a app(using “seam generate” after “seam create-project”)
With identifying relationship like Role , User and User_has_Role.
It generates the 3 one-to-many , many-to-one entities instead of 2 @manytoMany entities.
I have seen a similar question here seam-gen doesn't generate EntityQuery interfaces for @ManyToMany members
In this post here, he managed to generate many to many entities http://community.jboss.org/thread/146500
Can seamgen generate many-to-many entities ?
If i use hibernate tools separately it generates the entities correctly.
I used seamgen 2.2.1CR2
Ok, so this is not possible to do with seam-gen as the question you are linking too.
This is how to do it manually (which is very easy).
In your User.java entity, write the following.
This should be enough to generate/map the UserRoles table for you