Max,
Thanks for reply to my post.
When I first added this tag it didn't work for me because I was trying to add it inside the column tag of the table tag, like so:
Code:
<table name="COMMAND_ELEMENTS" class="CommandElementVO">
<primary-key>
<!-- setting up a specific id generator for a table -->
<generator class="sequence">
<param name="sequence">JEDI_DEV.COMMAND_ELEMENTS_SEQ</param>
</generator>
<key-column name="ID">
<meta attribute="scope-set">private</meta>
</key-column>
</primary-key>
</table>
But I see now it only works out side of the column tag, like so:
Code:
<table name="COMMAND" class="CommandVO">
<meta attribute="scope-set">private</meta>
<primary-key>
<!-- setting up a specific id generator for a table -->
<generator class="sequence">
<param name="sequence">COMMAND_SEQ</param>
</generator>
<key-column name="ID" property="getID"/>
</primary-key>
</table>
This works great when you are not extending a Base Class. However when you are extending a Base Class that defines the setter method for the id as private and defines the getter method for the id as public, how do you tell hibernate not to generate the setter method for the id and to delegate the getter method for the id?
I am guessing to accomplish this, one would have to implement a custom programmatic solution or strategy. I never implemented a programmatic strategy before, but feel I can do it if I had good instructions.
Thanks!