Hi,
I'm using the eclipse reverse engineering tool, and I want to rename a collection property.
For example, I have DB table like:
Cat
----
id
name
Mouse
------
id
name
cats_dinner
---------
cat_id
mouse_id
foreign keys: cd_fk_cat_id : cat_id -> cat.id
cd_fk_mouse_id : mouse_id -> mouse.id
So, by default, the reverse engineering will insert a property named "
Mouses" into the Cat class,
but I want it to set it to Mice
I tried inserting:
Code:
<table schema="public" name="cat">
<foreign-key constraint-name="cd_fk_cat_id">
<set property="mice"/>
</foreign-key>
</table>
in the reveng.xml.
it didn't affect the program generated in anyway.on the contrary, inserting
Code:
<table schema="public" name="cat">
<foreign-key constraint-name="cd_fk_cat_id">
<set exclude="true"/>
</foreign-key>
</table>
would remove the "
Mouses" property from the Cat class completely.
thanks,
Roee