![]() ![]() When applied to a field, indicates that this field should not be audited.we can apply this annotation to either field or a class, when applied to a class, indicates that all of its properties should be audited and when applied to a field, indicates that this field should be audited.Some of the important annotations used in Hibernate Envers A revision identifies a collection of changes to entities and their associations for all audited attributes that occurred within the boundary of a transaction. Hibernate Envers uses the same concept used source code versioning tools called revision. Implementing Hibernate Envers in an applicationĪdd Hibernate-envers dependency in your build tool configuration file.Īnnotate entity or entity properties using annotation, please make sure that entity primary keys will be of immutable class. Querying entity revisions similar to entities.Querying audited data of an entity and its association.Logging data for each revision using revision entity.Auditing Hibernate specific mappings which extends the JPA specification.Auditing of all mappings defined by JPA specification. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |