[hibernate-dev] Envers in Hibernate
Max Bowsher
maxb at f2s.com
Thu Oct 23 07:31:19 EDT 2008
Adam Warski wrote:
> Hello,
>
>>> Though I'd have to do some adaptation changes. As I was originally
>>> targeting Envers to support JPA mappings, I assumed that it will be
>>> working in an enviroment with Hibernate Annotations/EntityManager. So
>>> I used ReflectionManager to read the @Versioned annotations. In a
>>> pure Hibernate environment, this will not work.
>>
>> I don't think that making Envers a module in Core means that you
>> cannot use
>> Hibernate Annotations/EnityManager. In fact these two projects are
>> about to be
>> moved back into Core. As their own (maven) modules of course.
>
> Ah, ok. Then Envers would have a dependency on the annotations module (+
> users would have to use AnnotationConfiguration instead of
> Configuration). Makes sense, as you configure Envers through annotations
> (mark classes as versioned/historized), so you probably also use
> Annotations/EntityManager then, not "pure" Hibernate.
Personally, I'm still a fan of plain Hibernate non-JPA config. Could the
integration be done with a mind to making it possible to configure
Envers via a standard Configuration in a future release?
Max.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/hibernate-dev/attachments/20081023/e8803a8f/attachment.bin
More information about the hibernate-dev
mailing list