wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans Master/Detail form wizard Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans Master/Detail form wizard" Watch "Netbeans Master/Detail form wizard" New topic
Author

Netbeans Master/Detail form wizard

Tom Piersa
Greenhorn

Joined: Sep 25, 2009
Posts: 19
I've Googled this to death. I must just be to fried to come up with the right Google phrase.

I created my first Swing App using the Master/Detail form wizard in Netbeans (7.3.1, New, Master/Detail Sample Form). I pointed the form to the database on my laptop so I wouldn't screw up production data. I'm using integrated security with MS SQL Server. I'm done testing and I now want to change the connection string to point to the production database. I've look through the code thats generated and I can't find the connection string that's generated. Could someone point me in the right direction for updating the connection string.

I'm sure this is fall off the bar stool simple.

Thanks much,

Tom
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10170
    
    8

Not really a GUI question. I will move this over to the IDE forums for you.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Tom Piersa
Greenhorn

Joined: Sep 25, 2009
Posts: 19
Thanks - Tom
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1076
    
  10

Hi Tom,
The NetBeans Master-Detail actually creates JPA entities and other helper classes to deal with database. So, it is just a matter of changing the url in the persistence.xml (found under the META-INF) folder.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Tom Piersa
Greenhorn

Joined: Sep 25, 2009
Posts: 19
Got it. Thank you very much. Looks real easy to change the connection string at will. Interesting results with integrated security for SQL Server.

Tom
 
 
subject: Netbeans Master/Detail form wizard
 
Similar Threads
Deployment Descriptor Documentation
How to create master/detail form like access or oracle did?
Database connections in JNDI
WSAD Database Wizard to Oracle
Binding Database Tables in Desktop App