Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo/Hibernate] Using Envers for Hibernate-level versioning
[Teneo/Hibernate] Using Envers for Hibernate-level versioning [message #421092] Wed, 23 July 2008 19:28 Go to next message
Eclipse UserFriend
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 19:47 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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
Previous Topic:[Teneo]HibernateResource save very slowly!!
Next Topic:Remove "Run As" "Debug As" and "Profile As" EMF pop up menu entries wh
Goto Forum:
  


Current Time: Sat Sep 21 01:12:33 GMT 2024

Powered by FUDForum. Page generated in 0.02692 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top