I have table, that had an id, and two other columns. I could generate POJOs with no problem, but now I changed the scheme, and now I have the two columns (they are foreign keys), and the two columns are the primary key also. Now reverse engineering fails. It generates everything, except this one.
When I change back the scheme to have three columns, one ID, and two foreign keys, It's ok again. What am I missing?
I tried with both following reveng.xml file.
Code:
<table catalog="mycat" schema="dbo" name="RoomUsers" class="RoomUsersBase">
<primary-key>
<key-column name="player" />
<key-column name="roomID" />
</primary-key>
</table>
Code:
<table catalog="mycat" schema="dbo" name="RoomUsers" class="RoomUsersBase">
</table>
What am I missing?