I have got an Oracle database with no primary keys defined, just unique constraints. So when I do my reverse engineering for example in a ACCOUNT table I have the following Java model "reversed":
So, I tried to define a primary key within my reveng.xml:
But it doesn't work. I realized that the <table> tag is not been read. I can go like this:
Trying to exclude this column but I still get the two classes Account, AccountId with my VERSION column.
Anybody has got any similar problem? One interesting thing, is that I did the same in a PostgreSQL database and it worked, I could define my primary keys, change my class name and everything... it seems to be something with Oracle.. just guessing..
Anyway, I would appreciate very much any help! Cheers!
posted 12 years ago
Sorry guys, not my fault. This problem wasn't making any sense. I am using Eclipse Europa with JBossTools to do all my reverse engineering, and sometimes Eclipse just close itself because of an error, so I though this problem could be something related to JBossTools. So, somehow my changes in my reveng.xml file wasn't been noticed by hibernate, i started refreshing my app and I used the source view of reveng.xml file to edit it, instead of the fancy graphical jbosstool and now it is working!!!