• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Netbeans Master/Detail form wizard

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks - Tom
 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic