Hi,
ich have a serious Problem with the Revision Number in my Revision Entity
My Revision Entity looks like:
ID | Revision | Info | timestamp |
---|---|---|---|
10 | 100 | some info | 2012-05-09 11:58:42.499 |
10 | 102 | some info | 2013-05-07 08:04:10.298 |
10 | 130 | some info | 2013-08-10 10:39:51.672 |
10 | 103 | some info | 2013-08-10 11:01:12.459 |
10 | 104 | some info | 2013-08-10 11:01:18.741 |
My Entities are:;
Header 1 | Header 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??