Author: mdryakhlenkov
Date: 2007-06-27 12:22:23 -0400 (Wed, 27 Jun 2007)
New Revision: 2195
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/OrmDiagram.java
Log:
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/OrmDiagram.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/OrmDiagram.java 2007-06-27
16:06:14 UTC (rev 2194)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/OrmDiagram.java 2007-06-27
16:22:23 UTC (rev 2195)
@@ -317,7 +317,7 @@
if (valueType.isCollectionType()) {
Collection collection = (Collection)property.getValue();
Value component = collection.getElement();
- if (valueType.isAssociationType()) {//valueType.isComponentType()
+ if (component instanceof Component) {//valueType.isComponentType()
OrmShape childShape =
(OrmShape)elements.get(((Component)component).getComponentClassName());
if(childShape == null) childShape = getOrCreateComponentClass(property);
new Connection((Shape)(componentShape.getChildren().get(1)), childShape);
Show replies by date