Does anyone know how to migrate a CMP bean automatically in database(hypersonic)? Supposed that I have a CMP EJB A with field1, field2, field3 created and I stored some data into database. Now I expand the A with extra field4, and field5, is there anyway supports moving the existed data into the newly created A EJB? Or I have to perfrom the data backup/restore by hand?
Your help is appreciated.
There is no way to do it automatically. You don't have to backup and restore. You can execute an ALTER TABLE ADD COLUMN statement.