Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-16-2008, 03:41 PM
Member
 
Join Date: Apr 2008
Posts: 3
aa74 is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-20-2008, 10:06 PM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 421
Nicholas Jordan is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
which are the final classes in the java APi vagarwal_mca New To Java 2 01-10-2008 03:47 AM
Calling jar classes from java executable SteM Advanced Java 1 11-27-2007 09:21 AM
Java Wrapper Classes JavaForums Java Blogs 0 08-04-2007 03:24 AM
Running java classes with XML ai_2007 Advanced Java 1 06-29-2007 04:20 PM
Tables In Ejb3 Alan Enterprise JavaBeans 1 05-10-2007 05:36 PM


All times are GMT +3. The time now is 01:00 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org