org.hibernate.envers.strategy.spi.MappingContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-envers-jakarta Show documentation
Show all versions of hibernate-envers-jakarta Show documentation
Hibernate's entity version (audit/history) support Jakarta edition
The newest version!
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.envers.strategy.spi;
import org.hibernate.Incubating;
import org.hibernate.envers.configuration.internal.AuditEntitiesConfiguration;
import org.dom4j.Element;
/**
* Describes an audit mapping context.
*
* @author Chris Cranford
*/
@Incubating
public class MappingContext {
private Element auditEntityMapping;
private Element revisionEntityMapping;
private AuditEntitiesConfiguration auditEntityConfiguration;
public MappingContext(
Element auditEntityMapping,
Element revisionEntityMapping,
AuditEntitiesConfiguration auditEntitiesConfiguration) {
this.auditEntityMapping = auditEntityMapping;
this.revisionEntityMapping = revisionEntityMapping;
this.auditEntityConfiguration = auditEntitiesConfiguration;
}
public Element getAuditEntityMapping() {
return auditEntityMapping;
}
public Element getRevisionEntityMapping() {
return revisionEntityMapping;
}
public AuditEntitiesConfiguration getAuditEntityConfiguration() {
return auditEntityConfiguration;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy