|Using Extensions for Schema Generation [message #643054]
||Fri, 03 December 2010 13:39
| Tilen Bobek
Registered: December 2010
In our project we want the tables in the database get generated/altered automaticaly when some entity changes and also get the SQL queries that did that. I read the tutorial for the EclipseLink JPA and found how to configure the persistence unit in persistence.xml to generate the database schema automaticaly (property "eclipselink.ddl-generation.output-mode" for schema generation and property "eclipselink.ddl-generation.output-mode" for generation of SQL scripts).
Is it possible to configure the persistence unit so that if only a field in the entity changes the whole table (or even database) is not getting dropped and recreated but the table get only altered for the changes (for example adding/deleting a column, modifying a relation)?
Thanks in advance.
Powered by FUDForum
. Page generated in 0.03543 seconds