*
The moose likes EJB and other Java EE Technologies and the fly likes How to design Business Objects for related tables in Database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to design Business Objects for related tables in Database" Watch "How to design Business Objects for related tables in Database" New topic
Author

How to design Business Objects for related tables in Database

Raymond Ong
Ranch Hand

Joined: Jul 17, 2005
Posts: 46
Hi,

I'm not quite sure where to place this question so I just decided this area would best fit (unless I overlooked an area). Anyway, my question is how to design an object that would represent a set of related tables in a database.
It would be easy to do that if the tables were independent of each other. But I have table which had 1-to-many, and many-to-many relationships. I've read about BO, DAO and TO J2EE design patterns. I just need some practical advice on how to implement the patterns on the table relationships I just mentioned. Any links to references would also be appreciated.

Thanks in advance
karthi keyan R
Greenhorn

Joined: Jun 30, 2005
Posts: 4
hi,
This can be achived by the CMP concept in EJB, but it is in the 1.2 version on words..,
karthi keyan R
Greenhorn

Joined: Jun 30, 2005
Posts: 4
hi
I forget to go , Just go through the EJB2 spech , u well get a better idea.
thanks
karthi.R
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to design Business Objects for related tables in Database
 
Similar Threads
Hibernate and database physical design
many-to-many mapping in the hibernate mapping file ?
Star/Snowflake schema implementation as a Java Persistence Layer
Best choices on CMPs (or without them)... is there a final veredict?
Beginner Problem: son & parent