Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

relationships entanglement

 
Baba Bizlowsky
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody. I am completely stuck on mapping on particular relationship and would be immensely grateful if somebody would untangle my problem. I'll try to present it as clearly as possible.

I have two tables in my database, Alfa and Beta. They have the following columns

Alfa - ID (String), primary key
- DESCRIPTION (String)

Beta - Alfa_ID (String) \
- PLACE (int) _ compound primary key
- DESCRIPTION (String)

I have mapped them succesfully, and created a helper class Beta_PK which I use to persist table Beta.

These tables have unidirectional 1:n relationships, better said Alfa-contains-many-Betas. I'd like to be able to do



However I can't map the relationship if my life depended on it.

Can somebody please tell me how do ejb-jar.xml and the rest of DDs look like (I use Weblogic 8.1)? Basically it's the compound key which is at the same time the primary key to Alfa which gives me trouble.

I thank you for any kind of help/advice. Cheers!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!