2 Replies Latest reply on Dec 7, 2009 12:26 PM by skomarla

    Audited attributes per class

    lightlinger

      Hello,

      is there the possibility to get a list of all audited attributes of an entity class?

      It seems to me that the classes in org.hibernate.envers.configuration.metadata could help me out but I don't see a way to get them at runtime?!
      Thank you, greets
      Tim

        • 1. Re: Audited attributes per class
          adamw

          Hello,

          currently there's no API that enables that. But I think it should be possible with some small code changes.

          Adam

          • 2. Re: Audited attributes per class
            skomarla

             

            "lightlinger" wrote:
            Hello,

            is there the possibility to get a list of all audited attributes of an entity class?

            It seems to me that the classes in org.hibernate.envers.configuration.metadata could help me out but I don't see a way to get them at runtime?!
            Thank you, greets
            Tim


            I think the @Audited annotation retention is runtime.. so you could use the mirror api as a last resort