Author: dgeraskov
Date: 2011-04-07 08:37:28 -0400 (Thu, 07 Apr 2011)
New Revision: 30412
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaBasicMappingImpl.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaEntityImpl.java
Log:
TypeDef update
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaBasicMappingImpl.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaBasicMappingImpl.java 2011-04-07
12:23:46 UTC (rev 30411)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaBasicMappingImpl.java 2011-04-07
12:37:28 UTC (rev 30412)
@@ -64,7 +64,7 @@
@Override
public void synchronizeWithResourceModel() {
super.synchronizeWithResourceModel();
- this.typeDefContainer.synchronizeWithResourceModel();
+ this.typeDefContainer.initialize(this.getResourcePersistentAttribute());
this.specifiedGenerationTime = this.getResourceGenerationTime();
this.syncIndex();
this.syncType();
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaEntityImpl.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaEntityImpl.java 2011-04-07
12:23:46 UTC (rev 30411)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaEntityImpl.java 2011-04-07
12:37:28 UTC (rev 30412)
@@ -76,7 +76,7 @@
public void synchronizeWithResourceModel() {
super.synchronizeWithResourceModel();
this.cacheable.synchronizeWithResourceModel();
- this.typeDefContainer.synchronizeWithResourceModel();
+ this.typeDefContainer.initialize(this.getResourcePersistentType());
this.syncDiscriminatorFormula();
this.syncForeignKey();
}
@@ -85,7 +85,7 @@
public void update() {
super.update();
this.cacheable.update();
- this.typeDefContainer.update();
+ this.typeDefContainer.update(this.getResourcePersistentType());
if (discriminatorFormula != null){
this.discriminatorFormula.update();
}