File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases 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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Data Object quetion.." Watch "Data Object quetion.." New topic

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.
I agree. Here's the link:
subject: Data Object quetion..
It's not a secret anymore!