I have a class in my application that is being serialized by Hibernate, and there are already several rows in the corresponding table in my database. If I need to add fields to this class after the table is created, do I need to do anything special? Drop the table and let Hibernate start over? Or can I just add a properly annotated field and let Hibernate do the rest?
Share
Hibernate can update tables in place, if you configure:
See the documentation: http://docs.jboss.org/hibernate/core/3.3/reference/en/html/session-configuration.html. See Table 3.7 for details.