NetBeans Forums

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

Creating Entity Classes from MS-SQL server database

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



Joined: 28 Aug 2009
Posts: 9

PostPosted: Tue Feb 09, 2010 7:21 pm    Post subject: Creating Entity Classes from MS-SQL server database Reply with quote

Is there a quicker way to create the entity classes (from database) using SQL server without having to retrieve every table in the database? it takes all day, I would think there has to be a more streamlined way to do this...all for one table in the database...
Back to top
julsorio



Joined: 05 Jun 2009
Posts: 168
Location: Bogota, Colombia, South America

PostPosted: Tue Feb 09, 2010 9:17 pm    Post subject: Re: Creating Entity Classes from MS-SQL server database Reply with quote

Yes, there is.

right click over the module and select "Entity Class from Database", then in a new dialog you have to select your persistence unit and the tables.

On 9 February 2010 14:21, pankers <address-removed ([email]address-removed[/email])> wrote:
Quote:
Is there a quicker way to create the entity classes (from database) using SQL server without having to retrieve every table in the database?
Back to top
pankers



Joined: 28 Aug 2009
Posts: 9

PostPosted: Tue Feb 09, 2010 9:26 pm    Post subject: Reply with quote

Thanks for the reply. Yes, I do that, from the two radio buttons (Data Source or Database Schema, I chose Data Source and my data source (created earlier).

There are four steps in the dialog.

1. Choose File Type
2. Database Tables <== stuck on this while it pulls all the tables back
3. Entity Classes
4. Mapping Options

I'm stuck on #2 with a Please Wait dialog/progress bar while every table in SQL server is pulled back for me to choose the one I want. Surely there is a way to bypass this process. Is my request clear? Sometimes I'm not sure if I'm explaining it correctly. Very Happy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE 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