| I saw a number of questions on the forum about a similar issue to this but not quite in the same way.
 Say I have tables in a parent-child relationship, like Order and LineItem.  The LineItem table has a foreign key to Order in a field called ORDER_ID_FK.
 
 In the Middlegen UI, I removed the direction arrow on both ends.  In the output I expected a field called orderIdFk to be created that is a <property> with type int, instead of creating the <many-to-one> relationship.  However, the resulting output did not have this field included at all.
 
 In other words, I am trying to specify fields that are FKs to simply be mapped as a <property> with type int instead of <many-to-one>.  I also only want to do this for specific fields in specific tables, not for all foreign keys in the db.  Is it possible to set this up that if a foreign key exists and all arrows are removed in the UI that property tags are generated instead of leaving that field out the resulting generated hbm file completely?  I still want to get just the value of the field!
 
 Thanks,
 Daniel
 
 
 |