Ugo Cei dijo: > Derek Hohls wrote: >> The following steps now seem to be required: >> >> 1. Update the database - pretty straightforward, assuming that >> the new piece of data is just a new attribute on an existing >> table... >> >> 2. Update the TableBean representing where that data is stored, >> >> 3. Update the persistence layer configuration file - in the >> case of Hibernate, this would be a Table.hbm.xml file, > > 1. Update the TableBean.java file. > > 2. Automatically generate the mapping file (Table.hbm.xml) from XDcoclet > tags included in TableBean.java comments. > > 3. Update the database using Hibernate's tools.
Hi: Using OJB and Druid I do: 1-Make changes on Druid (add/change/remove fields, tables, etc). 2-Run ant that automatically: A-Automatically generates from Druid: a new SQL script, Java Beans and O/R map (xml). B-backups the data from the database C-drop the current database D-create a new database using the new SQL script and load the data again. E-Recompile the new beans.jar F-Copy the new bean.jar to the cocoon application and to the java handler project. It is a 2 step procedure. The most is done automatically, so there is no way to make mistakes. BTW, next version of Druid will include support for Hibernate (it is already on the CVS). But I am not sure how well it works. The link to druid is: http://druid.sf.net/ Best Regards, Antonio Gallardo --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
