Examples of addProjection()


Examples of org.hibernate.envers.tools.query.QueryBuilder.addProjection()

        // SELECT new list(ee) FROM middleEntity ee
        QueryBuilder qb = new QueryBuilder(versionsMiddleEntityName, "ee");
        qb.addFrom(referencedIdData.getAuditEntityName(), "e");
        qb.addFrom(indexIdData.getAuditEntityName(), "f");
        qb.addProjection("new list", "ee, e, f", false, false);
        // WHERE
        Parameters rootParameters = qb.getRootParameters();
        // ee.id_ref_ed = e.id_ref_ed
        referencedIdData.getPrefixedMapper().addIdsEqualToQuery(rootParameters, eeOriginalIdPropertyPath,
                referencedIdData.getOriginalMapper(), "e." + originalIdPropertyName);
View Full Code Here

Examples of org.objectweb.jorm.metainfo.api.NameRef.addProjection()

      }
    }
        Manager manager = mibh.getManager(jc);
        CompositeName cn = getLongIdCompositeName(manager);
    NameRef nr = nd.createNameRef(cn);
    nr.addProjection(getLongIdLid(), lid.getName());
    if (sc.jormclass.getSuperClasses().isEmpty()) {
      // define the inheritance filter permiting to determine the class
      // since an identifier (some bits are reserved for class
      // identification)
      Expression expr = new Round(new DivideBy(
View Full Code Here

Examples of org.objectweb.jorm.metainfo.api.NameRef.addProjection()

        CompositeName cn = getLongIdCompositeName(manager);
    NameRef nr = nd.createNameRef(cn);
    //create the hidden field
    mibh.createNameDefField(cr.getParent(), lidname, getFieldType());
    //define translation betwen the composite name field and the hidden field
    nr.addProjection(getLongIdLid(), lidname);
    //map the created hidden field in the ClassMapping
      mb.createClassRefNameDefMapping(cm, nd, sf);
    }
    public void defineClassReferenceNameDef(NameDef nd,
            ClassRef cr,
View Full Code Here

Examples of org.objectweb.jorm.metainfo.api.NameRef.addProjection()

        CompositeName cn = getLongIdCompositeName(manager);
    NameRef nr = nd.createNameRef(cn);
    //create the hidden field
    mibh.createNameDefField(cr.getParent(), lidname, getFieldType());
    //define translation betwen the composite name field and the hidden field
    nr.addProjection(getLongIdLid(), lidname);
    //map the created hidden field in the GenClassMapping
      mb.createClassRefNameDefMapping(gcm, nd, sf);
    }
    public void defineGenClassIdentifierNameDef(NameDef nd,
            GenClassRef gcr,
View Full Code Here

Examples of org.objectweb.jorm.metainfo.api.NameRef.addProjection()

        PrimitiveElement oid = mibh.createNameDefField(owner, prefix + OID, PTypeSpace.LONG);
        PrimitiveElement cid = mibh.createNameDefField(owner, prefix + CID, PTypeSpace.LONG);
        Manager manager = mibh.getManager(owner);
        CompositeName speedoidcn = getPolymorphIdCN(manager);
        NameRef nr = nd.createNameRef(speedoidcn);
        nr.addProjection(POLYMORH_ID_OID, oid.getName());
        nr.addProjection(POLYMORH_ID_CID, cid.getName());
    }
    public void defineClassIdentifierNameDef(NameDef nd,
            Class jc,
            SpeedoClass sc,
View Full Code Here

Examples of org.objectweb.jorm.metainfo.api.NameRef.addProjection()

        PrimitiveElement cid = mibh.createNameDefField(owner, prefix + CID, PTypeSpace.LONG);
        Manager manager = mibh.getManager(owner);
        CompositeName speedoidcn = getPolymorphIdCN(manager);
        NameRef nr = nd.createNameRef(speedoidcn);
        nr.addProjection(POLYMORH_ID_OID, oid.getName());
        nr.addProjection(POLYMORH_ID_CID, cid.getName());
    }
    public void defineClassIdentifierNameDef(NameDef nd,
            Class jc,
            SpeedoClass sc,
            ClassMapping cm,
View Full Code Here

Examples of org.objectweb.jorm.metainfo.api.NameRef.addProjection()

            if (cnNotDefined) {
                cn.createCompositeNameField(pkField.name,
                        mibh.getPrimitivePType(Type.getType(pkField.type)),
                        size, scale);
            }
            nr.addProjection(pkField.name, pkField.name);
        }
    }
    public boolean needInheritanceDiscriminator(SpeedoClass sc)
      throws SpeedoException {
        return true;
View Full Code Here

Examples of org.objectweb.jorm.metainfo.api.NameRef.addProjection()

                + ", type=" + type.getJavaName());
      }
            mibh.createNameDefField(cr.getParent(), fieldName, type, size, scale);
            //define the projection between composite name fields and field used
            // in NameRef
            nr.addProjection(pkField.name, fieldName);
        }
    }
    public void defineClassReferenceNameDef(NameDef nd,
            ClassRef cr,
            SpeedoField sf,
View Full Code Here

Examples of org.objectweb.jorm.metainfo.api.NameRef.addProjection()

                }
                mibh.createNameDefField(gcr, fieldName, type, size, scale);
            }
            //define the projection between composite name fields and field used
            // in NameRef
            nr.addProjection(pkField.name, fieldName);
        }
    }
    public void defineGenClassIdentifierNameDef(NameDef nd,
            GenClassRef gcr,
            SpeedoField sf,
View Full Code Here

Examples of org.springframework.data.rest.core.config.ProjectionDefinitionConfiguration.addProjection()

  public RepositoryRestConfiguration config() {

    ProjectionDefinitionConfiguration configuration = new ProjectionDefinitionConfiguration();

    for (Class<?> projection : getProjections()) {
      configuration.addProjection(projection);
    }

    RepositoryRestConfiguration config = new RepositoryRestConfiguration(configuration, metadataConfiguration());
    configureRepositoryRestConfiguration(config);
    return config;
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.