File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes How do I map this? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How do I map this?" Watch "How do I map this?" New topic
Author

How do I map this?

Dushy Inguva
Ranch Hand

Joined: Jun 24, 2003
Posts: 264
I have 2 tables Table1 and Table2

Table1:
Primary Key:
A,B,C
Other Columns:
D,E

Table2:
Primary Key:
A,C,D,F
Other Columns:
X
Now, when I load Table1, i want to load rows of Table2 that match the following criteria:
Table1.A = Table2.A and Table1.D = Table2.D

Is this a many-to-many ? Is so, can I map it since i don't have a join table?
[ June 13, 2006: Message edited by: Dushy Inguva ]

SJCP, SCBCD, SJCD, SCDJWS, SCEA (Part I)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I map this?