Welcome to Dream.In.Code
Getting Java Help is Easy!

Join 107,639 Java Programmers for FREE! Ask your question and get quick answers from experts. There are 948 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



netbeans database

 
Reply to this topicStart new topic

netbeans database, travel database

ceyesuma
post 4 Jun, 2008 - 06:30 AM
Post #1


New D.I.C Head

*
Joined: 16 Dec, 2007
Posts: 23


My Contributions


Is someone farmiliar with the travel database that installs with the netbeans installation?

I can finally connect to the db and it shows folders to hold tables etc yet there is no tables in the folder.

Is there a way to obtain the scrip for the travel db so I can actually use the db?
or does someone know how to add the data source that may be contained somewhere?
-Steve
User is offlineProfile CardPM

Go to the top of the page


1lacca
post 4 Jun, 2008 - 07:29 AM
Post #2


code.rascal

Group Icon
Joined: 11 Aug, 2005
Posts: 3,692



Thanked 9 times
My Contributions


Moved to Java.
For me it works fine (NetBeans 6.1):
- go to Services window
- right-click jdbc:derby://localhost:1527/travel and select connect
- open tables
- right-click TRIP and select View Data
This shows a lot of data for me.

I did it in a simple Java application project.
User is offlineProfile CardPM

Go to the top of the page

fsloke
post 6 Jun, 2008 - 05:34 AM
Post #3


D.I.C Head

**
Joined: 19 Dec, 2007
Posts: 212



Thanked 1 times
My Contributions


I successfully connect to my database

It show the Tables, Views, and Procedure.

I start with simple tutorial:
Created database : userInfo
userInfo contain 2 attributes: username and password

In my interface created 2 textField

If the textField username and password match with then database, the Login page will redirect the user to SuccessfullyLogin page.

Can NetBean automatically create query without typing the code?

If cannot, how can I do this?

[*** I saw some function there under Java Persistence contains:
1) Entity Manager
2) Query
3) Query Result

*** Is it useful?
]

Thank

This post has been edited by fsloke: 6 Jun, 2008 - 05:41 AM
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/29/08 07:08PM

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month