0 Replies Latest reply on Oct 7, 2014 10:14 AM by 2014_112

    Wrong Revison Number

    2014_112

      Hi,

      ich have a serious Problem with the Revision Number in my Revision Entity

       

      My Revision Entity looks like:

       

       

      IDRevisionInfotimestamp
      10100some info2012-05-09 11:58:42.499
      10102some info2013-05-07 08:04:10.298
      10130some info2013-08-10 10:39:51.672
      10103some info2013-08-10 11:01:12.459
      10104some info2013-08-10 11:01:18.741

       

       

       

      My Entities are:;

       

      Header 1Header 2

      @Entity

      @Audited

      public class A{

       

       

           private List<B> someRelation;

       

       

      }

      @Entity

      @Audited

      public class B{

       

      ....

      }

       

       

      Wenn i load Revison 130 the OneToMany Relation is loaded correctly. But when i load Revision 104 the Relation is lost, althoug the timestamp in the Revision Table is after the Revision with Number 130.

      I am absolutly sure that ich dont delete the Entity in one of the Revisions.

       

      Maybe the Revision Number in my RevisionEntity is not correct because the Revision with the highest Timestamp has to be the highest Revision Number?

       

      Iam using the following Dependencies:

       

      <dependency>

        <groupId>org.hibernate</groupId>

        <artifactId>hibernate-entitymanager</artifactId>

        <version>3.4.0.GA</version>

        <type>jar</type>

      </dependency>

       

      <dependency>

        <groupId>org.jboss.envers</groupId>

        <artifactId>jboss-envers</artifactId>

        <version>1.2.3-hibernate-3.3</version>

        <type>jar</type>

        <scope>compile</scope>

        </dependency>

       

      My Project is running on a Weblogic 10.3.6 with 2 clusters

       

      Any Ideas??