[Teneo/Hibernate] Using Envers for Hibernate-level versioning [message #421092] |
Wed, 23 July 2008 15:28  |
Eclipse User |
|
|
|
Originally posted by: bryan.bulten.ca
Hello,
In our project we are evaluating Envers (http://www.jboss.org/envers/)
as an alternative to EMF Temporality.
However, I'm not sure if it's possible for me to use this with
EMF/Teneo/Hibernate.
1. Envers uses an '@Versioned' annotation on classes/attributes to
enable versioning. Is there a way to have this annotation in the ECore
such that Hibernate will be able to understand it and pass it to Envers?
2. Envers requires Hibernate properties to be set for hooks when an
object is inserted/updated/deleted (e.g.,
"hibernate.ejb.event.post-insert"). How can these be specified to Teneo?
Thanks,
Bryan
|
|
|
Re: [Teneo/Hibernate] Using Envers for Hibernate-level versioning [message #421093 is a reply to message #421092] |
Wed, 23 July 2008 15:47  |
Eclipse User |
|
|
|
Hi Bryan,
I am afraid that it won't work with using annotations in ecore. The envers library is really based
on a annotation-in-java-class approach. I checked out the envers source code and it seems a lot of
work to change this to an ecore based annotation model.
So the only thing I can think of is add the annotations directly in the source code yourselve. Maybe
you can tweak the emf code generation templates to do this for you.
gr. Martin
Bryan Bulten wrote:
> Hello,
>
> In our project we are evaluating Envers (http://www.jboss.org/envers/)
> as an alternative to EMF Temporality.
>
> However, I'm not sure if it's possible for me to use this with
> EMF/Teneo/Hibernate.
>
> 1. Envers uses an '@Versioned' annotation on classes/attributes to
> enable versioning. Is there a way to have this annotation in the ECore
> such that Hibernate will be able to understand it and pass it to Envers?
>
>
> 2. Envers requires Hibernate properties to be set for hooks when an
> object is inserted/updated/deleted (e.g.,
> "hibernate.ejb.event.post-insert"). How can these be specified to Teneo?
>
>
>
> Thanks,
> Bryan
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.05019 seconds