It's not a secret anymore!*
The moose likes EJB and other Java EE Technologies and the fly likes Pro EJB 3 book of Mr Mike keith and Merrick Schincariol !! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply locked New topic
Author

Pro EJB 3 book of Mr Mike keith and Merrick Schincariol !!

Dupon David
Greenhorn

Joined: Aug 11, 2006
Posts: 19
Hello.
In the Pro EJB 3 book, and more precisely in the chapter 4 "OBJECT-RELATIONAL MAPPING", one do not treat the case of a table of association which contains elements other than the primary keys. Here a problem that I met and who I will be content if somebody can propose a solution to me.

I will try to reformulate my question I want to make request EJB3 QL with joint.

here my tables:



Knowing that I have the following table which has like cl�s primary both cl�s primary of the tables the preceding one.



knowing that cardinality between these tables and ManyToMany, my question and to know if so that I can make a join

between my tables I must create tables interm�diates which contain that the primary keys like umlssnmi_wasnmi kind

and whoart_wasnmi for example, and to make @JoinTable; or the table "wasnmi" will join the tables.

I tried to implement :

For table WHOART:

For UMLSSNMI table:



The TermProjPK class which contains the primary keys of table WASNMI:



For WASNMI table:



That does not function, because I do not know how I can reach the fields ` MODIF' and ` SRC' of the table ` WASNMI' starting from TermSource object.



Somebody already made there?. I thank you in advance

[ November 16, 2006: Message edited by: Dupon David ]
[ November 16, 2006: Message edited by: Dupon David ]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Please refrain from duplicate posting the same question multiple times. I have responded to your other thread with this same question. Closing this thread.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: Pro EJB 3 book of Mr Mike keith and Merrick Schincariol !!
 
Similar Threads
Repeated column in mapping for entity
"Mapping RelationShip State" in chapter 8
EJB 3 QL : join
@JoinTable or @JoinCol...
@ManyToOne and @OneToMany : 2 primary keys