Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Netbeans Master/Detail form wizard

 
Tom Piersa
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10974
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not really a GUI question. I will move this over to the IDE forums for you.
 
Tom Piersa
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks - Tom
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tom Piersa
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic