Author: dgeraskov
Date: 2010-03-15 11:17:09 -0400 (Mon, 15 Mar 2010)
New Revision: 20826
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6052
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java 2010-03-15
15:13:02 UTC (rev 20825)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java 2010-03-15
15:17:09 UTC (rev 20826)
@@ -592,7 +592,11 @@
sValue.setTypeName(tb.getBinaryName());
sValue.setFetchMode(FetchMode.JOIN);
RootClass associatedClass = rootClasses.get(ref.fullyQualifiedName);
- sValue.setReferencedEntityName(associatedClass.getEntityName());
+ if (associatedClass != null){
+ sValue.setReferencedEntityName(associatedClass.getEntityName());
+ } else {
+ sValue.setReferencedPropertyName(ref.fullyQualifiedName);
+ }
buildProperty(sValue);
prop.setCascade("none");//$NON-NLS-1$
} else {