1 2 Previous Next 23 Replies Latest reply on Feb 10, 2009 2:51 AM by amin-mc Go to original post
      • 15. Re: Inheritence

        Hi there

        I downloaded the patched version of VersionEventListener and it works! Thanks for your help. Is there a timeframe on when this will be available in envers?

        Cheers and many thanks!

        Amin

        • 16. Re: Inheritence

          Sorry, forgot that it is apart of Hibernate core. Will wait for 3.4 release. In the mean time I can use the patched version.

          Long day...

          • 17. Re: Inheritence

            Hi again,

            Just a quick question:

            If I add an address to a personal contact and view history then I see the address. If I then update the address and then view the history via PersonalContact I don't see the revision that was made to the address. Should I be looking at the address history via the Address entity?

            Cheers
            Amin

            • 18. Re: Inheritence
              adamw

              By "update the address", you mean changing a field in the address entity, or changing the reference to a different entity (different address)? In the first case, no revision should be generated for PersonalContact, in the second, a revision should be generated.

              --
              Adam

              • 19. Re: Inheritence

                Hi Adam

                Yes by updating address I mean changing a field on the address entity. That's ok that I will need to check the revision of the address entity.

                Am I correct in saying that the fix for VersionEntityListener will be available in Hibernate Core 3.4? Until then I can use the patched version. 3.4 isn't available in maven repo.

                Thanks again. This is a great framework which I will be demoing to my company.

                Amin

                • 20. Re: Inheritence
                  adamw

                  Hello,

                  in that case, a revision for PersonalContact won't be generated. In general, if two entities are in a bi-directional relation, a revision will be generated only if the content of the collection (that is - the size) or the reference will change (to a different entity).

                  Yes, the fix is already in trunk of hibernate. You can check it out from svn and build yourself: http://anonsvn.jboss.org/repos/hibernate/core/trunk/. But 3.4 itself isn't yet out.

                  Very glad you like Envers :)

                  --
                  Adam

                  • 21. Re: Inheritence
                    amin-mc

                    Hi

                    I have upgraded my hibernate jars to the following:

                    hibernate core 3.3.1.GA
                    jboss-envers 1.1.0.GA-Hibernate-3.3
                    hibernate annotations 3.4.0.GA
                    hibernate entity manager 3.4.0.GA

                    Just wondering if the patch as been applied to jboss-envers or I should still use the patched version from JIRA to continue?

                    Cheers

                    • 22. Re: Inheritence
                      adamw

                      Hello,

                      a patched version hasn't been released yet, but you can use the trunk version or the hibernate 3.3-compatible branch:
                      http://anonsvn.jboss.org/repos/hibernate/core/branches/envers-hibernate-3.3/

                      Adam

                      • 23. Re: Inheritence
                        amin-mc

                        Hi Adam

                        Thanks for your reply. I am using Maven for dependency management so ideally I would like to download entity versioning via Maven. I have downloaded hibernate core 3.3.1.GA and envers1.1.0.GA for hiberate 3.3.

                        I'll use the patched one for now and keep a track on when it is released.

                        Cheers

                        1 2 Previous Next