org.hibernate.cfg.ResultSetMappingSecondPass Maven / Gradle / Ivy
//$Id: ResultSetMappingSecondPass.java 10194 2006-08-03 07:53:09Z [email protected] $
package org.hibernate.cfg;
import java.util.Map;
import org.dom4j.Element;
import org.hibernate.MappingException;
import org.hibernate.engine.ResultSetMappingDefinition;
/**
* @author Emmanuel Bernard
*/
public class ResultSetMappingSecondPass extends ResultSetMappingBinder implements QuerySecondPass {
private Element element;
private String path;
private Mappings mappings;
public ResultSetMappingSecondPass(Element element, String path, Mappings mappings) {
this.element = element;
this.path = path;
this.mappings = mappings;
}
public void doSecondPass(Map persistentClasses) throws MappingException {
ResultSetMappingDefinition definition = buildResultSetMappingDefinition( element, path, mappings);
mappings.addResultSetMapping( definition );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy