most of my mysql 5 tables have autogenerated id. however, I am not able to run hbm2java (v3.1.0 b5) to make the @GeneratedValue annotation *just* for needed ids. I can either have no @GeneratedValue or to have it on all ids, and both is not correct. ok, i can fix this manually and with hard-coded column names in getTableIdentifierStrategyName() but this is not the way to go.
So I just wonder: is it possible for hibernatetool to 'figure out' which columns are autogenerated and to produce valid annotation just where it is needed?
thanx in advance!
|