NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Updateing Entity classes affter adding colums to DB table

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
DRJTower



Joined: 11 Aug 2009
Posts: 4

PostPosted: Fri Aug 21, 2009 4:46 pm    Post subject: Updateing Entity classes affter adding colums to DB table Reply with quote

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

PostPosted: Fri Aug 21, 2009 7:25 pm    Post subject: Found a way Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo