-
1. Re: hbm2ddl ignoring @Versioned annotations?
adamw Aug 21, 2008 2:50 AM (in response to twisgabak)Hello,
are you using the EnversHibernateToolTask? (as described here: http://www.jboss.org/envers/schema.html) If yes, can you post the code/ant xml you are using to generate the schema?
Adam -
2. Re: hbm2ddl ignoring @Versioned annotations?
twisgabak Aug 21, 2008 2:44 PM (in response to twisgabak)Hi,
I think I found the source of my error.
There were no exception thrown caused by a typo in my persistence-unit properties. Then I had to update the hibernate jars I was using (core, commons-annotations, annotations, entitymanager) that envers required. -
3. Re: hbm2ddl ignoring @Versioned annotations?
adamw Aug 22, 2008 8:21 AM (in response to twisgabak)Hello,
so there was no exception thrown, when you would expect an exception to be thrown? What was the type? And does it work now?
Adam -
4. Re: hbm2ddl ignoring @Versioned annotations?
twisgabak Aug 22, 2008 12:35 PM (in response to twisgabak)I didnt set the "hibernate.ejb.event.post-*" properties name correctly initially, I had "org.hibernate.ejb.event.post-*" instead and this was silently ignored. That was a simple error from me, but the fact that you can put any property name/values in the persistence-unit's properties without any runtime validation/error is weak IMO, but nothing related to Envers.
When I switched to the proper values I got some exceptions that led me to correct some version compatibility problems between Enverts and Hibernate I was using. Those exception I was expecting initially, but now I know why... ;)
Now everything is working great. Looks like Envers integration will be very straightforward and easy in my project.