Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2007-02-05 10:35:35 -0500
committermtaal2007-02-05 10:35:35 -0500
commitad94d24831344c2fd5ae99d78c783fec020e01a4 (patch)
treeb55918fb77291cf1f1e776de183003e519be2eec
parent2c8765edcac2376e442e4dc312b31312a235f403 (diff)
downloadorg.eclipse.emf.teneo-ad94d24831344c2fd5ae99d78c783fec020e01a4.tar.gz
org.eclipse.emf.teneo-ad94d24831344c2fd5ae99d78c783fec020e01a4.tar.xz
org.eclipse.emf.teneo-ad94d24831344c2fd5ae99d78c783fec020e01a4.zip
[172755]
-rw-r--r--plugins/org.eclipse.emf.teneo.hibernate.mapper/src/org/eclipse/emf/teneo/hibernate/mapper/AbstractMapper.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.teneo.hibernate.mapper/src/org/eclipse/emf/teneo/hibernate/mapper/AbstractMapper.java b/plugins/org.eclipse.emf.teneo.hibernate.mapper/src/org/eclipse/emf/teneo/hibernate/mapper/AbstractMapper.java
index df4daf70a..3bd647425 100644
--- a/plugins/org.eclipse.emf.teneo.hibernate.mapper/src/org/eclipse/emf/teneo/hibernate/mapper/AbstractMapper.java
+++ b/plugins/org.eclipse.emf.teneo.hibernate.mapper/src/org/eclipse/emf/teneo/hibernate/mapper/AbstractMapper.java
@@ -12,7 +12,7 @@
* Davide Marchignoli
* </copyright>
*
- * $Id: AbstractMapper.java,v 1.9 2007/02/01 12:35:54 mtaal Exp $
+ * $Id: AbstractMapper.java,v 1.10 2007/02/05 15:35:35 mtaal Exp $
*/
package org.eclipse.emf.teneo.hibernate.mapper;
@@ -48,6 +48,9 @@ abstract class AbstractMapper {
/** return the opposite of an association */
protected PAnnotatedEReference getOtherSide(PAnnotatedEReference paReference) {
// TODO assuming that mappedBy coincide with opposite, check in validation
+ if (paReference.getAnnotatedEReference().getEOpposite() == null) {
+ return null;
+ }
return paReference.getPaModel().getPAnnotated(paReference.getAnnotatedEReference().getEOpposite());
}

Back to the top