Regular |
|
Joined: Wed Mar 15, 2006 1:48 pm Posts: 91
|
I am using 3.2 beta 8 with MySQL 5. In a many-to-many mapping (user and role tables) generated from hbm2hbm and hbm2java in ant environment, I noticed inverse="true" is specified in set element of user hbm file. Hence there is HashSet of user defined in role's POJO code. That means there is a HashSet in user and role POJOs each other.
I am wondering how can I disable inverse attribute when generating hbm and don't generate corresponding user HashSet in role POJO. I only want to keep one HashSet of role in user POJO.
Any idea? Thanks!
|
|