|
Hibernate example source code file (DefaultTrackingModifiedEntitiesRevisionEntity.java)
The Hibernate DefaultTrackingModifiedEntitiesRevisionEntity.java source codepackage org.hibernate.envers; import org.hibernate.annotations.Fetch; import org.hibernate.annotations.FetchMode; import javax.persistence.*; import java.util.HashSet; import java.util.Set; /** * Extension of standard {@link DefaultRevisionEntity} that allows tracking entity names changed in each revision. * This revision entity is implicitly used when {@code org.hibernate.envers.track_entities_changed_in_revision} * parameter is set to {@code true}. * @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com) */ @MappedSuperclass public class DefaultTrackingModifiedEntitiesRevisionEntity extends DefaultRevisionEntity { @ElementCollection(fetch = FetchType.EAGER) @JoinTable(name = "REVCHANGES", joinColumns = @JoinColumn(name = "REV")) @Column(name = "ENTITYNAME") @Fetch(FetchMode.JOIN) @ModifiedEntityNames private Set<String> modifiedEntityNames = new HashSet Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate DefaultTrackingModifiedEntitiesRevisionEntity.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.