Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Using Extensions for Schema Generation
Using Extensions for Schema Generation [message #643054] Fri, 03 December 2010 18:39 Go to next message
Tilen Bobek is currently offline Tilen BobekFriend
Messages: 2
Registered: December 2010
Junior Member
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.

Re: Using Extensions for Schema Generation [message #643359 is a reply to message #643054] Mon, 06 December 2010 15:53 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Altering an existing schema is not currently supported. You need to either replace the schema, or generate a script and change it yourself to use alter.

Please log an enhancement request for this.

James : Wiki : Book : Blog : Twitter
Previous Topic:Getting Double instead of BigDecimal when using EntityManager#createNativeQuery()
Next Topic:JAXBContextFactory Not Found
Goto Forum:

Current Time: Fri Apr 03 17:47:11 GMT 2020

Powered by FUDForum. Page generated in 0.01452 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top