Hello I'm using EJB 2.1 on a JBoss 4.0.2 and XDoclet for interface generation. I need to add some new persistent fields to an entity bean that contains a primary key field and some persistent fields like:
I then added new persistent fields like this:
This code compiles fine and the descriptor is updated by XDoclet but the database table ist not.
Is there any way to update the database table at deployment time?
Not that this really helps you, but with Hibernate and the configuration file you could update the table at deployment time, but I don't think you can do the same with EJBs. I think you will have to update the table yourself before you deploy.