Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Java app with Netbeans and Derby database .. how to structure! :D

  1. #1
    Junior Member camel's Avatar
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java app with Netbeans and Derby database .. how to structure! :D

    Hello!

    This is my first post on this forum so please forgive me if I am a annoying and I have never ever studied databases :S so I may not make that much sense in terms of how I communicate my problem to you!

    Right well... I am making this application that does a load of stuff but requires a database full of user info! So I followed this tutorial!
    ->> YouTube - Hibernate and Java

    The tutorial shows you how to use netbeans and hibernate to create "employee" table, auto generate the getters and setters, populate some info into it and then run it ! specifically displaying the info you inputted!

    I thought great! such progress in one sitting! I will easly be able to create my own now.

    So yea, I planned out two tables for my test/digonostic server thing.

    table 1 "Test info"
    contains: Test number (int) , Test Descriptions (String)
    with some kind of mini table hanging off that called "Test solutions"
    that contains: Test result (String) , Test solution (String)
    asssss there will be multiple types of results you can get from tests and different appropriate solutions.

    Table 2 "User"
    Contains: UserIndex(String) , Username(String) , Password(String)
    with another mini table hanging off that called "user history"
    that contains: Date(Date), TestType(String), Testnumber(int), TestResults(String).
    because I want each user to have their own history.

    But my problem appears now! I can create tables but I have no idea about how to create these unique tables that hang off other tables or even the terminology to allow me to google and look for similar tutorials!

    If someone could explain to me roughly the steps, point me at a tutorial or give me a few key words I would be much appreciated!

    Kind Regards,
    Camel!


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,307
    Thanks
    181
    Thanked 824 Times in 767 Posts
    Blog Entries
    5

    Default Re: Java app with Netbeans and Derby database .. how to structure! :D

    If you are going to work with Hibernate, I recommend starting at the source and going through some of their docs and tutorials: Hibernate - JBoss Community That being said, you might also want to start with some basic JDBC and SQL tutorials, to give you a general sense of the lower levels of how to connect and communicate with a SQL database.

  3. #3
    Junior Member camel's Avatar
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java app with Netbeans and Derby database .. how to structure! :D

    Thank you very much Copeg! this stuff worked a treat and I have a lovely fully functioning SQL Database hooked up to my java program!

  4. #4
    Junior Member camel's Avatar
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java app with Netbeans and Derby database .. how to structure! :D

    My main mistake was using a convenience tool like hibernate which infact makes things more complicated for noobs! sadly at the time I didn't realize that it was one! Problem with being a noob is that you never do realize haha!

Similar Threads

  1. [SOLVED] Java app with Netbeans and Derby database
    By Kakashi in forum JDBC & Databases
    Replies: 3
    Last Post: March 17th, 2011, 02:35 PM
  2. How to deploy derby database?
    By Muaz_Sh in forum JDBC & Databases
    Replies: 8
    Last Post: March 17th, 2011, 09:23 AM
  3. calling a java a class connected to derby from a batch file
    By Reem in forum What's Wrong With My Code?
    Replies: 4
    Last Post: October 31st, 2010, 03:01 PM
  4. Java (Derby) Help
    By Neon612 in forum JDBC & Databases
    Replies: 3
    Last Post: August 19th, 2010, 08:40 PM
  5. Database connection using NetBeans
    By jcc285 in forum Java IDEs
    Replies: 6
    Last Post: June 9th, 2009, 03:23 AM

Tags for this Thread