Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / June 2005

Tip: Looking for answers? Try searching our database.

What will be your DAO design ?

Thread view: 
Ray in HK - 22 Jun 2005 11:52 GMT
For the following tables, which is a general rdbms design, what classes will
you create for accessing these tables ?

Table 1 : Group
group_id (PK)
group_desc

Table 2 : User
user_id (PK)
user_name

Table 3 : Group_User
group_id (FK)
user_id (FK)
Lucy - 22 Jun 2005 18:53 GMT
> For the following tables, which is a general rdbms design, what classes will
> you create for accessing these tables ?
[quoted text clipped - 10 lines]
> group_id (FK)
> user_id (FK)

I would start with:

private class   askTheTeacherWhatToDo implements bullShit {}
CodeFutures - 29 Jun 2005 10:35 GMT
You may need to study some of the basics of DAOs ...

http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html

http://www.corej2eepatterns.com/Patterns2ndEd/DataAccessObject.htm

http://www.codefutures.com/data-access-object

The best introduction to the general topic of core J2EE design patterns
is Core J2EE Patterns: Best Practices and Design Strategies by Dan
Malks, Deepak Alur, and John Crupi.

If you're really not so sure about what you're doing, you could try
generating the DAOs rather than hand coding.  You can read more about
that here:

http://www.codefutures.com/products/firestorm/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.