I am working on a project that takes in a common code base or SQL, HBM, and POJO files. I take the SQL files and build the database. I use the Hibernate mapping files and POJOs and I hit the ground running.
I have the requirement and capability to add columns to the common tables in the database. For example I add column ‘ticker_symbol’ to the common table ‘business’.
I create a POJO. In this example I create MyBusinessObj class that extends the common POJO BusinessObj. In my new class I include the getter and setter methods for this new ticker_symbol field.
My next step is to create the Hibernate mapping file. This is where I am stuck. Could someone help me out here? Point me in the right direction?
Thanks,
Chuck
|