These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: setting up envers 1.0.0
PostPosted: Sat Dec 18, 2010 12:48 pm 
Regular
Regular

Joined: Thu Nov 26, 2009 8:45 am
Posts: 78
Hi there,

i'm tryin to set up envers to work with my Hibernate 3.2.5 (had to use this one in this special project).
I added the listeners to my hibernate.cfg.xml like this:

<listener class="org.jboss.envers.event.VersionsEventListener" type="post-insert"/>
<listener class="org.jboss.envers.event.VersionsEventListener" type="post-update"/>
<listener class="org.jboss.envers.event.VersionsEventListener" type="post-delete"/>
<listener class="org.jboss.envers.event.VersionsEventListener" type="pre-collection-update"/>
<listener class="org.jboss.envers.event.VersionsEventListener" type="pre-collection-remove"/>
<listener class="org.jboss.envers.event.VersionsEventListener" type="post-collection-recreate"/>

when tryin to build my project, i get the following error:

[hibernatetool] org.hibernate.MappingException: invalid configuration
[hibernatetool] org.xml.sax.SAXParseException: Attribute "type" with value "pre-collection-update" must have a value from the list
"auto-flush merge create create-onflush delete dirty-check evict flush flush-entity load load-collection lock refresh replicate save-update
save update pre-load pre-update pre-insert pre-delete post-load post-update post-insert post-delete post-commit-update
post-commit-insert post-commit-delete ".

edit: when i outcomment the last three listeners, i get the following error:
[hibernatetool] org.xml.sax.SAXParseException: The content of element type
"session-factory" must match "(property*,mapping*,(class-cache|collection-cache)*,event*,listener*)".


can anybody tell me, what is wrong here?

thx,

hage


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.