Results 1 to 2 of 2
  1. #1
    aa74 is offline Member
    Join Date
    Apr 2008
    Posts
    3
    Rep Power
    0

    Default Java classes representing DB tables

    I want to create java classes that represent some tables in my database, my question is how to deal with foriegn keys?
    how can I refenrence them to their origanal tables?

    say I have the following tables

    student(StudId,fname,lname)
    unit(UnitCode,name)
    register(StudId,UnitCode)
    assignment(Id,name,UnitCode)

    Thank you

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Default

    I found a Table class already prebuilt in the Libraries, I can find it for you but the thing to do is just type Java Table Class in Google and you will find plenty for what your sample code shows.

Similar Threads

  1. which are the final classes in the java APi
    By vagarwal_mca in forum New To Java
    Replies: 2
    Last Post: 01-10-2008, 02:47 AM
  2. Calling jar classes from java executable
    By SteM in forum Advanced Java
    Replies: 1
    Last Post: 11-27-2007, 08:21 AM
  3. Running java classes with XML
    By ai_2007 in forum Advanced Java
    Replies: 1
    Last Post: 06-29-2007, 03:20 PM
  4. Tables In Ejb3
    By Alan in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 05-10-2007, 04:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •