wood burning stoves 2.0*
The moose likes JDBC and the fly likes Data Object quetion.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Data Object quetion.." Watch "Data Object quetion.." New topic
Author

Data Object quetion..

Sam Smoot
Ranch Hand

Joined: Apr 18, 2002
Posts: 238
This is probably (again) somthing that is really easy, but I haven't been allowed to really code anything for about 2+ years, so I'm a little rusty here.. :roll:

I am creating a standalone desktop application that uses Micro$oft Hackcess, (whoops!) Access for the database portion of the backend. I have (possibly over-)normalized the tables down to a primary General Information Table and 5 child tables, each with the potential to have multiple entires in each of the children that will be keyed to the initial record in the GITable mentioned above.

The database portion I can make work natively, but my question is about how to create the data object/class so that it will contain all of the result set from all of the tables when I'm not sure exactly how many entries are in all of the child tables that go with the entry from the GITable?

Any / all help is GREATLY appreciated...


CNSS/NSA Infosec Professional,<br />Software Engineer
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
You need to look at Value Object pattern, I guess.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Data Object quetion..
 
Similar Threads
Caching strategies
Hibernate performance issues using huge databases
How to structure domain objects
Spring 3.0 and Hibernate newbie question
overusing session object?