Using Extensions for Schema Generation [message #643054] |
Fri, 03 December 2010 13:39  |
Eclipse User |
|
|
|
Hello everyone!
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.
Regards
|
|
|
|
Powered by
FUDForum. Page generated in 0.24609 seconds