NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
DRJTower
Joined: 11 Aug 2009 Posts: 4
|
Posted: Fri Aug 21, 2009 4:46 pm Post subject: Updateing Entity classes affter adding colums to DB table |
|
|
I am working on a database application, and have been for the past two weeks. Now I need to add more columns into a table.
How do I update the entity classes to reflect the added columns in the database table?
I tried just deleting the entity class and making a new entity class from database, there are no compile errors, but when I run the program I get persistence errors.
Short of creating a new database application and manually re-entering all my code, is there a way to just update the entity class?
Thanks a ton for your help! |
|
| Back to top |
|
 |
DRJTower
Joined: 11 Aug 2009 Posts: 4
|
Posted: Fri Aug 21, 2009 7:25 pm Post subject: Found a way |
|
|
I found out that you can manually edit the entity class and add in your columns with no compile or runtime errors (if you close netbeans and use your own editor).
But if I add bunch of columns to a table this would take a long time to do, is there someway to get netbeans to do it? It did it before when it built the entity class. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|