Ok now I'm near to spamming.. :P
How I avoid to generate bi-directional association?
I have to generate only few entities for some tables.. One of this has many foreign keys pointing at his ID (call this table A). So in the dbre.xml generated it has many back reference to the other tables.
If I give the option --includeTables with only the tables i need for this project, roo complains that can't generate entities for "A" because missing tables he reverence in his back mapping foreign keys. So I'm stuck to generate all the tables for the schema, and mantain all the the back reference in a reverence table accesse by many tables?
Ex. you have a CITY table listing all the cities of a State. Many table uses this table with foreign keys to this with fields like BORN_CITY, ADDDRESS_CITY and so on..
It's impractical to have a City entitiy with all the backreference to all this tables because only bi-directional generation is allowed.


Reply With Quote
