Examples of JpaSqlResultSetMapping


Examples of org.apache.cayenne.jpa.map.JpaSqlResultSetMapping

    class JpaSQLResultSetMappingVisitor extends BaseTreeVisitor {

        @Override
        public boolean onStartNode(ProjectPath path) {
            JpaSqlResultSetMapping jpaMapping = (JpaSqlResultSetMapping) path.getObject();

            SQLResult mapping = new SQLResult(jpaMapping.getName());

            for (JpaColumnResult c : jpaMapping.getColumnResults()) {
                mapping.addColumnResult(c.getName());
            }

            for (JpaEntityResult e : jpaMapping.getEntityResults()) {

                EntityResult result = new EntityResult(e.getEntityClassName());
                for (JpaFieldResult f : e.getFieldResults()) {
                    result.addObjectField(f.getName(), f.getColumn());
                }
View Full Code Here
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.