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/