Author: mdryakhlenkov
Date: 2007-07-17 10:38:55 -0400 (Tue, 17 Jul 2007)
New Revision: 2471
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OrmModelNameVisitor.java
Log:
EXIN-366: Adding elements on the diagram by double-click on fields of classes which have
additional information in mapping files
Bug of getting name of subclass fixed
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OrmModelNameVisitor.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OrmModelNameVisitor.java 2007-07-17
14:34:06 UTC (rev 2470)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OrmModelNameVisitor.java 2007-07-17
14:38:55 UTC (rev 2471)
@@ -475,7 +475,7 @@
StringBuffer name = new StringBuffer();
// if (((OrmContentProvider) viewer.getContentProvider()).getTip() ==
OrmContentProvider.PACKAGE_CLASS_FIELD_CONTENT_PROVIDER) {
- name.append(clazz.getEntityName() != null ? clazz.getEntityName() :
clazz.getEntityName());
+ name.append(clazz.getEntityName() != null ? clazz.getEntityName() :
clazz.getClassName());
// } else {
// name.append(clazz.getEntityName());
// }