aspose file tools*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Data Object quetion..
 
Similar Threads
overusing session object?
Spring 3.0 and Hibernate newbie question
Caching strategies
How to structure domain objects
Hibernate performance issues using huge databases