Author: adamw
Date: 2008-10-31 08:00:22 -0400 (Fri, 31 Oct 2008)
New Revision: 15462
Removed:
core/trunk/envers/src/main/java/org/hibernate/envers/entity/
Modified:
core/trunk/envers/src/main/java/org/hibernate/envers/configuration/metadata/AuditMetadataGenerator.java
Log:
Removing the persister hack, as HHH-3351 has been resolved
Modified:
core/trunk/envers/src/main/java/org/hibernate/envers/configuration/metadata/AuditMetadataGenerator.java
===================================================================
---
core/trunk/envers/src/main/java/org/hibernate/envers/configuration/metadata/AuditMetadataGenerator.java 2008-10-31
11:55:23 UTC (rev 15461)
+++
core/trunk/envers/src/main/java/org/hibernate/envers/configuration/metadata/AuditMetadataGenerator.java 2008-10-31
12:00:22 UTC (rev 15462)
@@ -39,7 +39,6 @@
import org.hibernate.envers.entities.mapper.ExtendedPropertyMapper;
import org.hibernate.envers.entities.mapper.MultiPropertyMapper;
import org.hibernate.envers.entities.mapper.SubclassPropertyMapper;
-import org.hibernate.envers.entity.VersionsInheritanceEntityPersister;
import org.hibernate.envers.tools.StringTools;
import org.hibernate.envers.tools.log.YLog;
import org.hibernate.envers.tools.log.YLogManager;
@@ -240,10 +239,6 @@
}
}
- private void addPersisterHack(Element class_mapping) {
- class_mapping.addAttribute("persister",
VersionsInheritanceEntityPersister.class.getName() );
- }
-
@SuppressWarnings({"unchecked"})
public void generateFirstPass(PersistentClass pc, PersistentClassVersioningData
versioningData,
EntityXmlMappingData xmlMappingData) {
@@ -281,9 +276,6 @@
Element discriminator_element =
class_mapping.addElement("discriminator");
MetadataTools.addColumns(discriminator_element,
pc.getDiscriminator().getColumnIterator());
discriminator_element.addAttribute("type",
pc.getDiscriminator().getType().getName());
-
- // If so, there is some inheritance scheme -> using the persister
hack.
- addPersisterHack(class_mapping);
}
// Adding the id mapping
@@ -298,8 +290,6 @@
class_mapping =
MetadataTools.createSubclassEntity(xmlMappingData.getMainXmlMapping(),
versionsEntityName,
versionsTableName, schema, catalog, extendsEntityName,
pc.getDiscriminatorValue());
- addPersisterHack(class_mapping);
-
// The id and revision type is already mapped in the parent
// Getting the property mapper of the parent - when mapping properties,
they need to be included
Show replies by date