Set relationa table name by relation nam
Status: Inactive
Brought to you by:
mattes3
In the standard EntityBean.vsl, the name of the relationa-table is
not given. As for the ManyToMany relation, JBoss will use the
combination of two roles's name as the relation-table's name,
which is quite long and erroneous when you modified the role.
I
modified the template to use the relation's name as the relationa-
table's name in many2many relation between two entiry
bean.
You can modify the template manually:
Insert the following
after line 180
*
* @jboss.relation-table
* table-
name="$adata.name"
* create-table="true"
* remove-
table="true"
UML2EJB is marvellous!
The modified EntityBean template which will set relationa table name by relation name between two EntiryBean