[hibernate-commits] Hibernate SVN: r18766 - in core/branches/envers-hibernate-3.3/src: main/java/org/hibernate/envers/configuration/metadata and 7 other directories.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Wed Feb 10 12:34:17 EST 2010


Author: adamw
Date: 2010-02-10 12:34:16 -0500 (Wed, 10 Feb 2010)
New Revision: 18766

Added:
   core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/CustomEnum.java
   core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/CustomEnumUserType.java
   core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/DateIdTestEntity.java
   core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/EmbIdWithCustomType.java
   core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/EmbIdWithCustomTypeTestEntity.java
   core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/
   core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditReaderAPITest.java
   core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditedTestEntity.java
   core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/NotAuditedTestEntity.java
   core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/ids/DateId.java
Removed:
   core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditReaderAPITest.java
   core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditedTestEntity.java
   core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/NotAuditedTestEntity.java
Modified:
   core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/AuditReader.java
   core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/configuration/metadata/IdMetadataGenerator.java
   core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/MapProxy.java
   core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java
   core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/reader/AuditReaderImpl.java
   core/branches/envers-hibernate-3.3/src/test/resources/testng.xml
Log:
svn merge -r 18239:18765 https://svn.jboss.org/repos/hibernate/core/trunk/envers .\nNot merging the CompositeIds test from rev 18763

Modified: core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/AuditReader.java
===================================================================
--- core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/AuditReader.java	2010-02-10 16:00:29 UTC (rev 18765)
+++ core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/AuditReader.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -32,6 +32,7 @@
 
 /**
  * @author Adam Warski (adam at warski dot org)
+ * @author Hernan Chanfreau
  */
 public interface AuditReader {
     /**
@@ -121,4 +122,12 @@
      * is closed.
      */
     AuditQueryCreator createQuery();
+
+    /**
+     * Checks if the entityClass was configured to be audited.
+     *  
+     * @param entityClass Class of the entity asking for audit support
+     * @return true if the entityClass is audited.
+     */
+    boolean isEntityClassAudited(Class<?> entityClass);
 }

Modified: core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/configuration/metadata/IdMetadataGenerator.java
===================================================================
--- core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/configuration/metadata/IdMetadataGenerator.java	2010-02-10 16:00:29 UTC (rev 18765)
+++ core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/configuration/metadata/IdMetadataGenerator.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -42,7 +42,6 @@
 import org.hibernate.mapping.Component;
 import org.hibernate.mapping.PersistentClass;
 import org.hibernate.mapping.Property;
-import org.hibernate.type.ImmutableType;
 import org.hibernate.type.Type;
 
 /**
@@ -62,7 +61,7 @@
             Property property = properties.next();
             Type propertyType = property.getType();
             if (!"_identifierMapper".equals(property.getName())) {
-                if (propertyType instanceof ImmutableType) {
+                if (!propertyType.isMutable()) {
                     // Last but one parameter: ids are always insertable
                     mainGenerator.getBasicMetadataGenerator().addBasic(parent,
                             getIdPersistentPropertyAuditingData(property),

Modified: core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/MapProxy.java
===================================================================
--- core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/MapProxy.java	2010-02-10 16:00:29 UTC (rev 18765)
+++ core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/MapProxy.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -36,7 +36,7 @@
 public class MapProxy<K, V> implements Map<K, V>, Serializable {
     private static final long serialVersionUID = 8418037541773074646L;
 
-    private Initializor<Map<K, V>> initializor;
+    private transient Initializor<Map<K, V>> initializor;
     protected Map<K, V> delegate;
 
     public MapProxy() {

Modified: core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java
===================================================================
--- core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java	2010-02-10 16:00:29 UTC (rev 18765)
+++ core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -38,7 +38,7 @@
 public class SortedMapProxy<K, V> implements SortedMap<K, V>, Serializable {
     private static final long serialVersionUID = 2645817952901452375L;
 
-    private Initializor<SortedMap<K, V>> initializor;
+    private transient Initializor<SortedMap<K, V>> initializor;
     protected SortedMap<K, V> delegate;
 
     public SortedMapProxy() {
@@ -154,4 +154,4 @@
         checkInit();
         return delegate.hashCode();
     }
-}
\ No newline at end of file
+}

Modified: core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/reader/AuditReaderImpl.java
===================================================================
--- core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/reader/AuditReaderImpl.java	2010-02-10 16:00:29 UTC (rev 18765)
+++ core/branches/envers-hibernate-3.3/src/main/java/org/hibernate/envers/reader/AuditReaderImpl.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -45,6 +45,7 @@
 
 /**
  * @author Adam Warski (adam at warski dot org)
+ * @author Hernan Chanfreau
  */
 public class AuditReaderImpl implements AuditReaderImplementor {
     private final AuditConfiguration verCfg;
@@ -209,4 +210,12 @@
 	public AuditQueryCreator createQuery() {
         return new AuditQueryCreator(verCfg, this);
     }
+	
+    public boolean isEntityClassAudited(Class<?> entityClass) {
+        checkNotNull(entityClass, "Entity class");
+        checkSession();
+
+        String entityName = entityClass.getName();       
+        return (verCfg.getEntCfg().isVersioned(entityName));
+    }	
 }

Copied: core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/CustomEnum.java (from rev 18765, core/trunk/envers/src/test/java/org/hibernate/envers/test/entities/ids/CustomEnum.java)
===================================================================
--- core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/CustomEnum.java	                        (rev 0)
+++ core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/CustomEnum.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -0,0 +1,40 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors.  All third-party contributions are
+ * distributed under license by Red Hat Middleware LLC.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA  02110-1301  USA
+ */
+package org.hibernate.envers.test.entities.ids;
+
+/**
+ * @author Slawek Garwol (slawekgarwol at gmail dot com)
+ */
+public enum CustomEnum {
+    YES,
+    NO;
+
+    public String toYesNo() {
+        return this == YES ? "Y" : "N";
+    }
+
+    public static CustomEnum fromYesNo(String value) {
+        return "Y".equals(value) ? YES : NO;
+    }
+}

Copied: core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/CustomEnumUserType.java (from rev 18765, core/trunk/envers/src/test/java/org/hibernate/envers/test/entities/ids/CustomEnumUserType.java)
===================================================================
--- core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/CustomEnumUserType.java	                        (rev 0)
+++ core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/CustomEnumUserType.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -0,0 +1,99 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors.  All third-party contributions are
+ * distributed under license by Red Hat Middleware LLC.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA  02110-1301  USA
+ */
+package org.hibernate.envers.test.entities.ids;
+
+import java.io.Serializable;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.sql.Types;
+
+import org.hibernate.HibernateException;
+import org.hibernate.usertype.UserType;
+
+/**
+ * @author Slawek Garwol (slawekgarwol at gmail dot com)
+ */
+public class CustomEnumUserType implements UserType {
+    private static final int[] SQL_TYPES = {Types.VARCHAR};
+
+    public int[] sqlTypes() {
+        return SQL_TYPES;
+    }
+
+    public Class returnedClass() {
+        return CustomEnum.class;
+    }
+
+    public boolean equals(Object x, Object y) throws HibernateException {
+        if (x == y) {
+            return true;
+        }
+        if ((x == null) || (y == null)) {
+            return false;
+        }
+        return x.equals(y);
+    }
+
+    public int hashCode(Object x) throws HibernateException {
+        return (x == null) ? 0 : x.hashCode();
+    }
+
+    public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException {
+        String name = rs.getString(names[0]);
+        if (rs.wasNull()) {
+            return null;
+        }
+        return CustomEnum.fromYesNo(name);
+    }
+
+    public void nullSafeSet(PreparedStatement st, Object value, int index) throws HibernateException, SQLException {
+        CustomEnum val = (CustomEnum) value;
+        if (val == null) {
+            st.setNull(index, Types.VARCHAR);
+        } else {
+            st.setString(index, val.toYesNo());
+        }
+    }
+
+    public Object deepCopy(Object value) throws HibernateException {
+        return value;
+    }
+
+    public boolean isMutable() {
+        return false;
+    }
+
+    public Serializable disassemble(Object value) throws HibernateException {
+        return (Serializable) value;
+    }
+
+    public Object assemble(Serializable cached, Object owner) throws HibernateException {
+        return cached;
+    }
+
+    public Object replace(Object original, Object target, Object owner) throws HibernateException {
+        return original;
+    }
+}

Copied: core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/DateIdTestEntity.java (from rev 18765, core/trunk/envers/src/test/java/org/hibernate/envers/test/entities/ids/DateIdTestEntity.java)
===================================================================
--- core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/DateIdTestEntity.java	                        (rev 0)
+++ core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/DateIdTestEntity.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -0,0 +1,90 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors.  All third-party contributions are
+ * distributed under license by Red Hat Middleware LLC.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA  02110-1301  USA
+ */
+package org.hibernate.envers.test.entities.ids;
+
+import org.hibernate.envers.Audited;
+
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import java.util.Date;
+
+/**
+ * @author Adam Warski (adam at warski dot org)
+ */
+ at Entity
+public class DateIdTestEntity {
+    @Id
+    private Date id;
+
+    @Audited
+    private String str1;
+
+    public DateIdTestEntity() {
+    }
+
+    public DateIdTestEntity(String str1) {
+        this.str1 = str1;
+    }
+
+    public DateIdTestEntity(Date id, String str1) {
+        this.id = id;
+        this.str1 = str1;
+    }
+
+    public Date getId() {
+        return id;
+    }
+
+    public void setId(Date id) {
+        this.id = id;
+    }
+
+    public String getStr1() {
+        return str1;
+    }
+
+    public void setStr1(String str1) {
+        this.str1 = str1;
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (o == null || getClass() != o.getClass()) return false;
+
+        DateIdTestEntity that = (DateIdTestEntity) o;
+
+        if (id != null ? !id.equals(that.id) : that.id != null) return false;
+        if (str1 != null ? !str1.equals(that.str1) : that.str1 != null) return false;
+
+        return true;
+    }
+
+    @Override
+    public int hashCode() {
+        int result = id != null ? id.hashCode() : 0;
+        result = 31 * result + (str1 != null ? str1.hashCode() : 0);
+        return result;
+    }
+}
\ No newline at end of file

Copied: core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/EmbIdWithCustomType.java (from rev 18765, core/trunk/envers/src/test/java/org/hibernate/envers/test/entities/ids/EmbIdWithCustomType.java)
===================================================================
--- core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/EmbIdWithCustomType.java	                        (rev 0)
+++ core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/EmbIdWithCustomType.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -0,0 +1,87 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors.  All third-party contributions are
+ * distributed under license by Red Hat Middleware LLC.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA  02110-1301  USA
+ */
+package org.hibernate.envers.test.entities.ids;
+
+import java.io.Serializable;
+import javax.persistence.Embeddable;
+
+import org.hibernate.annotations.Type;
+import org.hibernate.annotations.TypeDef;
+
+/**
+ * @author Slawek Garwol (slawekgarwol at gmail dot com)
+ */
+ at Embeddable
+ at TypeDef(name = "customEnum", typeClass = CustomEnumUserType.class)
+public class EmbIdWithCustomType implements Serializable {
+    private Integer x;
+
+    @Type(type = "customEnum")
+    private CustomEnum customEnum;
+
+    public EmbIdWithCustomType() {
+    }
+
+    public EmbIdWithCustomType(Integer x, CustomEnum customEnum) {
+        this.x = x;
+        this.customEnum = customEnum;
+    }
+
+    public Integer getX() {
+        return x;
+    }
+
+    public void setX(Integer x) {
+        this.x = x;
+    }
+
+    public CustomEnum getCustomEnum() {
+        return customEnum;
+    }
+
+    public void setCustomEnum(CustomEnum customEnum) {
+        this.customEnum = customEnum;
+    }
+
+    @Override
+    public boolean equals(Object obj) {
+        if (this == obj) return true;
+        if (!(obj instanceof EmbIdWithCustomType)) return false;
+
+        EmbIdWithCustomType that = (EmbIdWithCustomType) obj;
+
+        if (x != null ? !x.equals(that.x) : that.x != null) return false;
+        if (customEnum != that.customEnum) return false;
+
+        return true;
+    }
+
+    @Override
+    public int hashCode() {
+        int result;
+        result = (x != null ? x.hashCode() : 0);
+        result = 31 * result + (customEnum != null ? customEnum.hashCode() : 0);
+        return result;
+    }
+}

Copied: core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/EmbIdWithCustomTypeTestEntity.java (from rev 18765, core/trunk/envers/src/test/java/org/hibernate/envers/test/entities/ids/EmbIdWithCustomTypeTestEntity.java)
===================================================================
--- core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/EmbIdWithCustomTypeTestEntity.java	                        (rev 0)
+++ core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/entities/ids/EmbIdWithCustomTypeTestEntity.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -0,0 +1,83 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors.  All third-party contributions are
+ * distributed under license by Red Hat Middleware LLC.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA  02110-1301  USA
+ */
+package org.hibernate.envers.test.entities.ids;
+
+import javax.persistence.EmbeddedId;
+import javax.persistence.Entity;
+
+import org.hibernate.envers.Audited;
+
+/**
+ * @author Slawek Garwol (slawekgarwol at gmail dot com)
+ */
+ at Entity
+public class EmbIdWithCustomTypeTestEntity {
+    @EmbeddedId
+    private EmbIdWithCustomType id;
+
+    @Audited
+    private String str1;
+
+    public EmbIdWithCustomTypeTestEntity() {
+    }
+
+    public EmbIdWithCustomTypeTestEntity(EmbIdWithCustomType id, String str1) {
+        this.id = id;
+        this.str1 = str1;
+    }
+
+    public EmbIdWithCustomType getId() {
+        return id;
+    }
+
+    public void setId(EmbIdWithCustomType id) {
+        this.id = id;
+    }
+
+    public String getStr1() {
+        return str1;
+    }
+
+    public void setStr1(String str1) {
+        this.str1 = str1;
+    }
+
+    public boolean equals(Object obj) {
+        if (this == obj) return true;
+        if (!(obj instanceof EmbIdWithCustomTypeTestEntity)) return false;
+
+        EmbIdWithCustomTypeTestEntity that = (EmbIdWithCustomTypeTestEntity) obj;
+        if (id != null ? !id.equals(that.id) : that.id != null) return false;
+        if (str1 != null ? !str1.equals(that.str1) : that.str1 != null) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        int result;
+        result = (id != null ? id.hashCode() : 0);
+        result = 31 * result + (str1 != null ? str1.hashCode() : 0);
+        return result;
+    }
+}

Copied: core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader (from rev 18765, core/trunk/envers/src/test/java/org/hibernate/envers/test/integration/auditReader)

Deleted: core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditReaderAPITest.java
===================================================================
--- core/trunk/envers/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditReaderAPITest.java	2010-02-10 16:00:29 UTC (rev 18765)
+++ core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditReaderAPITest.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -1,88 +0,0 @@
-/*
- * Hibernate, Relational Persistence for Idiomatic Java
- *
- * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
- * indicated by the @author tags or express copyright attribution
- * statements applied by the authors.  All third-party contributions are
- * distributed under license by Red Hat Middleware LLC.
- *
- * This copyrighted material is made available to anyone wishing to use, modify,
- * copy, or redistribute it subject to the terms and conditions of the GNU
- * Lesser General Public License, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
- * for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this distribution; if not, write to:
- * Free Software Foundation, Inc.
- * 51 Franklin Street, Fifth Floor
- * Boston, MA  02110-1301  USA
- */
-package org.hibernate.envers.test.integration.auditReader;
-
-import java.util.Arrays;
-
-import javax.persistence.EntityManager;
-
-import org.hibernate.ejb.Ejb3Configuration;
-import org.hibernate.envers.exception.NotAuditedException;
-import org.hibernate.envers.test.AbstractEntityTest;
-import org.testng.annotations.BeforeClass;
-import org.testng.annotations.Test;
-
-/**
- * A test which checks the correct behavior of AuditReader.isEntityClassAudited(Class entityClass).
- * 
- * @author Hernan Chanfreau
- */
-public class AuditReaderAPITest extends AbstractEntityTest {
-    public void configure(Ejb3Configuration cfg) {
-        cfg.addAnnotatedClass(AuditedTestEntity.class);
-        cfg.addAnnotatedClass(NotAuditedTestEntity.class);
-    }
-
-    @BeforeClass(dependsOnMethods = "init")
-    public void initData() {
-        EntityManager em = getEntityManager();
-        em.getTransaction().begin();
-        AuditedTestEntity ent1 = new AuditedTestEntity(1, "str1");
-        NotAuditedTestEntity ent2 = new NotAuditedTestEntity(1, "str1");
-
-        em.persist(ent1);
-        em.persist(ent2);
-        em.getTransaction().commit();
-
-        em.getTransaction().begin();
-        
-        ent1 = em.find(AuditedTestEntity.class, 1);
-        ent2 = em.find(NotAuditedTestEntity.class, 1);
-        ent1.setStr1("str2");
-        ent2.setStr1("str2");
-        em.getTransaction().commit();
-    }
-
-    @Test
-    public void testIsEntityClassAuditedForAuditedEntity() {
-        assert getAuditReader().isEntityClassAudited(AuditedTestEntity.class);
-        
-        assert Arrays.asList(1, 2).equals(getAuditReader().getRevisions(AuditedTestEntity.class, 1));
-    }
-
-    @Test
-    public void testIsEntityClassAuditedForNotAuditedEntity() {
-    	
-        assert !getAuditReader().isEntityClassAudited(NotAuditedTestEntity.class);
-        
-        try {
-        	getAuditReader().getRevisions(NotAuditedTestEntity.class, 1);
-        } catch (NotAuditedException nae) {
-			// it's ok because the entity is not audited
-        	assert true;
-		}
-    }
-
-
-}

Copied: core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditReaderAPITest.java (from rev 18765, core/trunk/envers/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditReaderAPITest.java)
===================================================================
--- core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditReaderAPITest.java	                        (rev 0)
+++ core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditReaderAPITest.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -0,0 +1,88 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors.  All third-party contributions are
+ * distributed under license by Red Hat Middleware LLC.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA  02110-1301  USA
+ */
+package org.hibernate.envers.test.integration.auditReader;
+
+import java.util.Arrays;
+
+import javax.persistence.EntityManager;
+
+import org.hibernate.ejb.Ejb3Configuration;
+import org.hibernate.envers.exception.NotAuditedException;
+import org.hibernate.envers.test.AbstractEntityTest;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+
+/**
+ * A test which checks the correct behavior of AuditReader.isEntityClassAudited(Class entityClass).
+ * 
+ * @author Hernan Chanfreau
+ */
+public class AuditReaderAPITest extends AbstractEntityTest {
+    public void configure(Ejb3Configuration cfg) {
+        cfg.addAnnotatedClass(AuditedTestEntity.class);
+        cfg.addAnnotatedClass(NotAuditedTestEntity.class);
+    }
+
+    @BeforeClass(dependsOnMethods = "init")
+    public void initData() {
+        EntityManager em = getEntityManager();
+        em.getTransaction().begin();
+        AuditedTestEntity ent1 = new AuditedTestEntity(1, "str1");
+        NotAuditedTestEntity ent2 = new NotAuditedTestEntity(1, "str1");
+
+        em.persist(ent1);
+        em.persist(ent2);
+        em.getTransaction().commit();
+
+        em.getTransaction().begin();
+        
+        ent1 = em.find(AuditedTestEntity.class, 1);
+        ent2 = em.find(NotAuditedTestEntity.class, 1);
+        ent1.setStr1("str2");
+        ent2.setStr1("str2");
+        em.getTransaction().commit();
+    }
+
+    @Test
+    public void testIsEntityClassAuditedForAuditedEntity() {
+        assert getAuditReader().isEntityClassAudited(AuditedTestEntity.class);
+        
+        assert Arrays.asList(1, 2).equals(getAuditReader().getRevisions(AuditedTestEntity.class, 1));
+    }
+
+    @Test
+    public void testIsEntityClassAuditedForNotAuditedEntity() {
+    	
+        assert !getAuditReader().isEntityClassAudited(NotAuditedTestEntity.class);
+        
+        try {
+        	getAuditReader().getRevisions(NotAuditedTestEntity.class, 1);
+        } catch (NotAuditedException nae) {
+			// it's ok because the entity is not audited
+        	assert true;
+		}
+    }
+
+
+}

Deleted: core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditedTestEntity.java
===================================================================
--- core/trunk/envers/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditedTestEntity.java	2010-02-10 16:00:29 UTC (rev 18765)
+++ core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditedTestEntity.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -1,88 +0,0 @@
-/*
- * Hibernate, Relational Persistence for Idiomatic Java
- *
- * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
- * indicated by the @author tags or express copyright attribution
- * statements applied by the authors.  All third-party contributions are
- * distributed under license by Red Hat Middleware LLC.
- *
- * This copyrighted material is made available to anyone wishing to use, modify,
- * copy, or redistribute it subject to the terms and conditions of the GNU
- * Lesser General Public License, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
- * for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this distribution; if not, write to:
- * Free Software Foundation, Inc.
- * 51 Franklin Street, Fifth Floor
- * Boston, MA  02110-1301  USA
- */
-package org.hibernate.envers.test.integration.auditReader;
-
-import javax.persistence.Entity;
-import javax.persistence.Id;
-
-import org.hibernate.envers.Audited;
-
-/**
- * @author Hernan Chanfreau
- */
- at Entity
-public class AuditedTestEntity {
-    @Id
-    private Integer id;
-
-    @Audited
-    private String str1;
-
-    public AuditedTestEntity() {
-    }
-
-    public AuditedTestEntity(String str1) {
-        this.str1 = str1;
-    }
-
-    public AuditedTestEntity(Integer id, String str1) {
-        this.id = id;
-        this.str1 = str1;
-    }
-
-    public Integer getId() {
-        return id;
-    }
-
-    public void setId(Integer id) {
-        this.id = id;
-    }
-
-    public String getStr1() {
-        return str1;
-    }
-
-    public void setStr1(String str1) {
-        this.str1 = str1;
-    }
-
-    public boolean equals(Object o) {
-        if (this == o) return true;
-        if (!(o instanceof AuditedTestEntity)) return false;
-
-        AuditedTestEntity that = (AuditedTestEntity) o;
-
-        if (id != null ? !id.equals(that.id) : that.id != null) return false;
-        if (str1 != null ? !str1.equals(that.str1) : that.str1 != null) return false;
-
-        return true;
-    }
-
-    public int hashCode() {
-        int result;
-        result = (id != null ? id.hashCode() : 0);
-        result = 31 * result + (str1 != null ? str1.hashCode() : 0);
-        return result;
-    }
-}

Copied: core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditedTestEntity.java (from rev 18765, core/trunk/envers/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditedTestEntity.java)
===================================================================
--- core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditedTestEntity.java	                        (rev 0)
+++ core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/AuditedTestEntity.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -0,0 +1,88 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors.  All third-party contributions are
+ * distributed under license by Red Hat Middleware LLC.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA  02110-1301  USA
+ */
+package org.hibernate.envers.test.integration.auditReader;
+
+import javax.persistence.Entity;
+import javax.persistence.Id;
+
+import org.hibernate.envers.Audited;
+
+/**
+ * @author Hernan Chanfreau
+ */
+ at Entity
+public class AuditedTestEntity {
+    @Id
+    private Integer id;
+
+    @Audited
+    private String str1;
+
+    public AuditedTestEntity() {
+    }
+
+    public AuditedTestEntity(String str1) {
+        this.str1 = str1;
+    }
+
+    public AuditedTestEntity(Integer id, String str1) {
+        this.id = id;
+        this.str1 = str1;
+    }
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public String getStr1() {
+        return str1;
+    }
+
+    public void setStr1(String str1) {
+        this.str1 = str1;
+    }
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (!(o instanceof AuditedTestEntity)) return false;
+
+        AuditedTestEntity that = (AuditedTestEntity) o;
+
+        if (id != null ? !id.equals(that.id) : that.id != null) return false;
+        if (str1 != null ? !str1.equals(that.str1) : that.str1 != null) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        int result;
+        result = (id != null ? id.hashCode() : 0);
+        result = 31 * result + (str1 != null ? str1.hashCode() : 0);
+        return result;
+    }
+}

Deleted: core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/NotAuditedTestEntity.java
===================================================================
--- core/trunk/envers/src/test/java/org/hibernate/envers/test/integration/auditReader/NotAuditedTestEntity.java	2010-02-10 16:00:29 UTC (rev 18765)
+++ core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/NotAuditedTestEntity.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -1,85 +0,0 @@
-/*
- * Hibernate, Relational Persistence for Idiomatic Java
- *
- * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
- * indicated by the @author tags or express copyright attribution
- * statements applied by the authors.  All third-party contributions are
- * distributed under license by Red Hat Middleware LLC.
- *
- * This copyrighted material is made available to anyone wishing to use, modify,
- * copy, or redistribute it subject to the terms and conditions of the GNU
- * Lesser General Public License, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
- * for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this distribution; if not, write to:
- * Free Software Foundation, Inc.
- * 51 Franklin Street, Fifth Floor
- * Boston, MA  02110-1301  USA
- */
-package org.hibernate.envers.test.integration.auditReader;
-
-import javax.persistence.Entity;
-import javax.persistence.Id;
-
-/**
- * @author Adam Warski (adam at warski dot org)
- */
- at Entity
-public class NotAuditedTestEntity {
-    @Id
-    private Integer id;
-
-    private String str1;
-
-    public NotAuditedTestEntity() {
-    }
-
-    public NotAuditedTestEntity(String str1) {
-        this.str1 = str1;
-    }
-
-    public NotAuditedTestEntity(Integer id, String str1) {
-        this.id = id;
-        this.str1 = str1;
-    }
-
-    public Integer getId() {
-        return id;
-    }
-
-    public void setId(Integer id) {
-        this.id = id;
-    }
-
-    public String getStr1() {
-        return str1;
-    }
-
-    public void setStr1(String str1) {
-        this.str1 = str1;
-    }
-
-    public boolean equals(Object o) {
-        if (this == o) return true;
-        if (!(o instanceof NotAuditedTestEntity)) return false;
-
-        NotAuditedTestEntity that = (NotAuditedTestEntity) o;
-
-        if (id != null ? !id.equals(that.id) : that.id != null) return false;
-        if (str1 != null ? !str1.equals(that.str1) : that.str1 != null) return false;
-
-        return true;
-    }
-
-    public int hashCode() {
-        int result;
-        result = (id != null ? id.hashCode() : 0);
-        result = 31 * result + (str1 != null ? str1.hashCode() : 0);
-        return result;
-    }
-}

Copied: core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/NotAuditedTestEntity.java (from rev 18765, core/trunk/envers/src/test/java/org/hibernate/envers/test/integration/auditReader/NotAuditedTestEntity.java)
===================================================================
--- core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/NotAuditedTestEntity.java	                        (rev 0)
+++ core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/auditReader/NotAuditedTestEntity.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -0,0 +1,85 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors.  All third-party contributions are
+ * distributed under license by Red Hat Middleware LLC.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA  02110-1301  USA
+ */
+package org.hibernate.envers.test.integration.auditReader;
+
+import javax.persistence.Entity;
+import javax.persistence.Id;
+
+/**
+ * @author Adam Warski (adam at warski dot org)
+ */
+ at Entity
+public class NotAuditedTestEntity {
+    @Id
+    private Integer id;
+
+    private String str1;
+
+    public NotAuditedTestEntity() {
+    }
+
+    public NotAuditedTestEntity(String str1) {
+        this.str1 = str1;
+    }
+
+    public NotAuditedTestEntity(Integer id, String str1) {
+        this.id = id;
+        this.str1 = str1;
+    }
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public String getStr1() {
+        return str1;
+    }
+
+    public void setStr1(String str1) {
+        this.str1 = str1;
+    }
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (!(o instanceof NotAuditedTestEntity)) return false;
+
+        NotAuditedTestEntity that = (NotAuditedTestEntity) o;
+
+        if (id != null ? !id.equals(that.id) : that.id != null) return false;
+        if (str1 != null ? !str1.equals(that.str1) : that.str1 != null) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        int result;
+        result = (id != null ? id.hashCode() : 0);
+        result = 31 * result + (str1 != null ? str1.hashCode() : 0);
+        return result;
+    }
+}

Copied: core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/ids/DateId.java (from rev 18765, core/trunk/envers/src/test/java/org/hibernate/envers/test/integration/ids/DateId.java)
===================================================================
--- core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/ids/DateId.java	                        (rev 0)
+++ core/branches/envers-hibernate-3.3/src/test/java/org/hibernate/envers/test/integration/ids/DateId.java	2010-02-10 17:34:16 UTC (rev 18766)
@@ -0,0 +1,83 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors.  All third-party contributions are
+ * distributed under license by Red Hat Middleware LLC.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA  02110-1301  USA
+ */
+package org.hibernate.envers.test.integration.ids;
+
+import org.hibernate.ejb.Ejb3Configuration;
+import org.hibernate.envers.test.AbstractEntityTest;
+import org.hibernate.envers.test.entities.ids.*;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+
+import javax.persistence.EntityManager;
+import java.util.Arrays;
+import java.util.Date;
+
+/**
+ * @author Adam Warski (adam at warski dot org)
+ */
+public class DateId extends AbstractEntityTest {
+    private Date id1;
+
+    public void configure(Ejb3Configuration cfg) {
+        cfg.addAnnotatedClass(DateIdTestEntity.class);
+    }
+
+    @BeforeClass(dependsOnMethods = "init")
+    public void initData() {
+
+        // Revision 1
+        EntityManager em = getEntityManager();
+        em.getTransaction().begin();
+
+        DateIdTestEntity dite = new DateIdTestEntity(new Date(), "x");
+        em.persist(dite);
+
+        id1 = dite.getId();
+
+        em.getTransaction().commit();
+
+        // Revision 2
+        em = getEntityManager();
+        em.getTransaction().begin();
+
+        dite = em.find(DateIdTestEntity.class, id1);
+        dite.setStr1("y");
+
+        em.getTransaction().commit();
+    }
+
+    @Test
+    public void testRevisionsCounts() {
+        assert Arrays.asList(1, 2).equals(getAuditReader().getRevisions(DateIdTestEntity.class, id1));
+    }
+
+    @Test
+    public void testHistoryOfId1() {
+        DateIdTestEntity ver1 = new DateIdTestEntity(id1, "x");
+        DateIdTestEntity ver2 = new DateIdTestEntity(id1, "y");
+
+        assert getAuditReader().find(DateIdTestEntity.class, id1, 1).getStr1().equals("x");
+        assert getAuditReader().find(DateIdTestEntity.class, id1, 2).getStr1().equals("y");
+    }
+}
\ No newline at end of file

Modified: core/branches/envers-hibernate-3.3/src/test/resources/testng.xml
===================================================================
--- core/branches/envers-hibernate-3.3/src/test/resources/testng.xml	2010-02-10 16:00:29 UTC (rev 18765)
+++ core/branches/envers-hibernate-3.3/src/test/resources/testng.xml	2010-02-10 17:34:16 UTC (rev 18766)
@@ -4,6 +4,7 @@
     <test name="All">
         <packages>
             <package name="org.hibernate.envers.test.integration.accesstype" />
+            <package name="org.hibernate.envers.test.integration.auditReader" />
             <package name="org.hibernate.envers.test.integration.basic" />
             <package name="org.hibernate.envers.test.integration.cache" />
             <package name="org.hibernate.envers.test.integration.collection" />
@@ -46,7 +47,7 @@
             <package name="org.hibernate.envers.test.integration.manytomany.ternary" />
             <package name="org.hibernate.envers.test.integration.manytomany.unidirectional" />
             <package name="org.hibernate.envers.test.integration.manytoone.unidirectional" />
-            <package name="org.hibernate.envers.test.integration.naming" />
+            <package name="org.hibernate.envers.test.integration.naming"/>
             <package name="org.hibernate.envers.test.integration.naming.ids" />
             <package name="org.hibernate.envers.test.integration.notinsertable" />
             <package name="org.hibernate.envers.test.integration.notinsertable.manytoone" />



More information about the hibernate-commits mailing list