This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
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 ]