What will be your DAO design ?  
Author Message
Ray in HK





PostPosted: 2005-6-22 18:53:00 Top

java-programmer, What will be your DAO design ? 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





PostPosted: 2005-6-23 1:54:00 Top

java-programmer >> What will be your DAO design ?
"Ray in HK" <email***@***.com> wrote in message news:42b9431c$email***@***.com...
> 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)
>
I would start with:

private class askTheTeacherWhatToDo implements bullShit {}


 
CodeFutures





PostPosted: 2005-6-29 17:36:00 Top

java-programmer >> What will be your DAO design ?
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/