hi all, I'm trying to use the seam generate-entities command to generate entities(what else?) from a MySQL database with the following three tables:
-User
username char (PK)
password char
-Role
id bigint (PK)
name char
-UserRole
user (PK,FK)
role (PK,FK)
As result I expected only two entity classes, one for User with a @ManyToMany annotation, linking to the Role table, using the UserRole table as the joinTable, and another one for Role.
Instead of it seam creates 4 classes, User, Role, UserRole and UserRoleId with User and Role linked to UserRole with a @OneToMany relationship.
Is there any way to change this behaviour to have only two classes generated from the database?