This week's giveaway is in the Groovy forum.
We're giving away four copies of Groovy Fundamentals video training course and have Ken Kousen on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes JDBC and Object Design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC and Object Design" Watch "JDBC and Object Design" New topic

JDBC and Object Design


Joined: Jan 08, 2002
Posts: 13
Hi friend!
I have a table :
username varchar2(15),
password varchar2(15),
tel varchar2(15),
.... a lot of fields here)
I use JDBC to connect to my table
I want to keep track of users when they enter my site. Which way should I ues
1 . Create a MembersClass containing all the field in my table and methods to access, update these fields. To keep track of users I store MembersClass object in session
1. Create two classes User class containing username and password fields, storing this class in session to keep track of users. The second class is MembersClass like the first one for creating, updating new users.
Thanks in advanced

Don't get me started about those stupid light bulbs.
subject: JDBC and Object Design