If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > Auto Generate Java code from MySQL DB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-20-08, 18:59
sprintf sprintf is offline
Registered User
 
Join Date: Mar 2008
Posts: 4
Auto Generate Java code from MySQL DB

hi,

i have MySQL v 5.1, java 1.6, netbeans 6, eclipse 3.3.2 and JDeveloper 11g installed on my laptop.

my question is, is there anyway i could get any of the above mentioned IDEs to generate a project based on the connection for MySQL db?

example

if i had a db called DB1 with 3 Tables T1, T2 and T3 and T1 related to T2 by R1 and T1 related to T3 by R3 then generate Java classes to perform SQL operations on these tables?

i have tried netbeans' destop>database app template but it only offers master table and then the detailed table. doesnt create GUIs for the other tables in the DB

thanks
Reply With Quote
  #2 (permalink)  
Old 03-20-08, 23:08
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
sorry, that's not really a mysql question, is it

moving thread to java forum
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 03-21-08, 08:31
sprintf sprintf is offline
Registered User
 
Join Date: Mar 2008
Posts: 4
oh just worked it out:

as a reference for those need the answer here it is...

netbeans 6: new project: java > desktop app > run the wizard, then right click on the project node on the projects tab/window, select "new" then "entity classes from database..." then the wizard will come up for you to set it all up!

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On