|Update an Entity [message #871429]
||Sun, 13 May 2012 16:16
| Thorsten Treffer
Registered: May 2012
please let me start by stating the obvious: I am new to EclipseLink. I did some research on the matter but couldn't found anything useful. Which really puzzles me, cause I can't believe I am the first one with this problem.
With the help of various online sources I managed to build an application that is using EclipseLink to persist the data in a database. That is working fine so far. However, I am now facing the problem that I need to add a member into one of the Entity classes (a long value with the name categoryId). When I do that, EclipseLink throws an Exception, stating that the column with the name CATEGORYID can't be found in the table. Well, of course, it isn't in the database yet.
Is there a way to change entities without having to drop and recreate the corresponding table? I don't want to lose the data I already entered into the application.
with best regards,
Powered by FUDForum
. Page generated in 0.02420 seconds