Ok...
I have a deployed application in Jboss with jar files.
The database is already created, and everything is alright.
Then the user, throught the system deployed, create a new column in the table 'client' which have this columns.
Client
-------
id -> long
name -> string
and user create a new column called 'email'
Client
-------
id -> long
name -> string
email -> string
So, I have to 'alter table' and put the new column via JDBC.
After this recreate the hbm´s and the session factory.
I understood the process until here.
And now I create the new pojo and put into the jars? So when the jboss reboot, the system knows the new column? Is it correct?
You have an example? It´s a confused solution, or I have to learn more about hibernate. :D
Sorry by my english :S,
Thanks in advance again,
Murilo
|