A JPA provider would use the join table and automatically join across the many-to-many relationship between the two entity tables, but there is no support (in Java!) for putting state on relationships. If you have state (more than just foreign keys) in your join table then you need to model it using a relationship entity that is related in a many-to-one to each of the two entities and make the two entities have a one-to-many back to the relationship entity.
Hello Mr Mike Keith. Initially I thank you for your book Pro EJB3, it is very interesting (it is also the opinion of my colleagues). I also thank you for your answer which I tried to implement as follows:
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?. Any suggestion will be come well it.