JPA Error when new entity is added without DropAndCreate [message #878336] |
Tue, 29 May 2012 01:27  |
Eclipse User |
|
|
|
I am developing a J2EE application with JSF, EclipseLink2 as JPA installation and mySQL as the back-end database with Netbeans. Application works fine except when I add new attributes to existing entities, or create new Entities. If I select the dropandcreate option in Persistance.xml file, the application runs again without errors, but it deletes the whole data base with previous entries. When I go to production, I can not afford to lose data of the database when I add a new entity. Is there any way to overcome this. I tried to use a database schema, but could not figure how to do it. Thanks in advance
|
|
|
|
Re: JPA Error when new entity is added without DropAndCreate [message #878536 is a reply to message #878522] |
Tue, 29 May 2012 09:47  |
Eclipse User |
|
|
|
I want to add attributes to existing entities, but when I use create option, it add new entities, but do not add new fields to existing tables. I can not assure 100% that there will be no possibility to add a new attribute during the production phase. So best thing is to wait till EclipseLink 2.4 is available. Will it allow adding new attributes will be update the database with new fields without deleting existing data? When will it be released?
|
|
|
Powered by
FUDForum. Page generated in 0.03108 seconds