Package org.hibernate.cfg

Source Code of org.hibernate.cfg.ResultSetMappingSecondPass

//$Id: ResultSetMappingSecondPass.java 10196 2006-08-03 07:53:27Z max.andersen@jboss.com $
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 );
  }
}
TOP

Related Classes of org.hibernate.cfg.ResultSetMappingSecondPass

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.