All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.envers.internal.entities.IdMappingData Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show 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.internal.entities;

import org.hibernate.envers.internal.entities.mapper.id.IdMapper;

import org.dom4j.Element;

/**
 * @author Adam Warski (adam at warski dot org)
 */
public class IdMappingData {
	private final IdMapper idMapper;
	// Mapping which will be used to generate the entity
	private final Element xmlMapping;
	// Mapping which will be used to generate references to the entity in related entities
	private final Element xmlRelationMapping;

	public IdMappingData(IdMapper idMapper, Element xmlMapping, Element xmlRelationMapping) {
		this.idMapper = idMapper;
		this.xmlMapping = xmlMapping;
		this.xmlRelationMapping = xmlRelationMapping;
	}

	public IdMapper getIdMapper() {
		return idMapper;
	}

	public Element getXmlMapping() {
		return xmlMapping;
	}

	public Element getXmlRelationMapping() {
		return xmlRelationMapping;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy