Welcome to Dream.In.Code
Become a Java Expert!

Join 150,064 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,778 people online right now. Registration is fast and FREE... Join Now!




netbeans database

 
Reply to this topicStart new topic

netbeans database, travel database

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

New D.I.C Head
*

Joined: 16 Dec, 2007
Posts: 27


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
+Quote Post

1lacca
RE: Netbeans Database
4 Jun, 2008 - 06:29 AM
Post #2

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 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
+Quote Post

fsloke
RE: Netbeans Database
6 Jun, 2008 - 04:34 AM
Post #3

D.I.C Regular
***

Joined: 19 Dec, 2007
Posts: 258



Thanked: 4 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 - 04:41 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 10:43PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month