Examples of entityForClass()


Examples of org.apache.cayenne.jpa.map.JpaEntityMap.entityForClass()

            // the relationship property or field of entityA; "_" ; the name of
            // the primary key column in table B. The foreign key column has the
            // same type as the primary key of table B.

            JpaEntityMap map = path.firstInstanceOf(JpaEntityMap.class);
            JpaEntity target = map.entityForClass(relationship.getTargetEntityName());

            if (target == null) {
                context.recordConflict(new SimpleValidationFailure(
                        relationship,
                        "Invalid relationship target "
View Full Code Here

Examples of org.apache.cayenne.jpa.map.JpaEntityMap.entityForClass()

            // the relationship property or field of entityA; "_" ; the name of
            // the primary key column in table B. The foreign key column has the
            // same type as the primary key of table B.

            JpaEntityMap map = path.firstInstanceOf(JpaEntityMap.class);
            JpaEntity target = map.entityForClass(relationship.getTargetEntityName());

            if (target == null) {
                context.recordConflict(new SimpleValidationFailure(
                        relationship,
                        "Invalid relationship target "
View Full Code Here

Examples of org.apache.cayenne.jpa.map.JpaEntityMap.entityForClass()

            // the relationship property or field of entityA; "_" ; the name of
            // the primary key column in table B. The foreign key column has the
            // same type as the primary key of table B.

            JpaEntityMap map = (JpaEntityMap) path.firstInstanceOf(JpaEntityMap.class);
            JpaEntity target = map.entityForClass(relationship.getTargetEntityName());

            if (target == null) {
                context.recordConflict(new SimpleValidationFailure(
                        relationship,
                        "Invalid relationship target "
View Full Code Here

Examples of org.apache.cayenne.jpa.map.JpaEntityMap.entityForClass()

        // apply defaults
        new EntityMapDefaultsProcessor().applyDefaults(context);

        JpaEntityMap map = context.getEntityMap();
        JpaEntity entity = map.entityForClass(MockAnnotatedBeanVersion.class);
        assertNotNull(entity);

        JpaVersion v = entity.getAttributes().getVersionAttribute("attribute1");
        assertNotNull(v);
        assertNotNull(v.getColumn());
View Full Code Here

Examples of org.apache.cayenne.jpa.map.JpaEntityMap.entityForClass()

        // apply defaults
        EntityMapDefaultsProcessor defaultsProcessor = new EntityMapDefaultsProcessor();
        defaultsProcessor.applyDefaults(context);
        JpaEntityMap map = context.getEntityMap();
        entity = map.entityForClass(MockAnnotatedBean3.class);
        assertNotNull(entity);
    }

    public void testMissingAttributeAnnotation() throws Exception {
View Full Code Here

Examples of org.apache.cayenne.jpa.map.JpaEntityMap.entityForClass()

            // the relationship property or field of entityA; "_" ; the name of
            // the primary key column in table B. The foreign key column has the
            // same type as the primary key of table B.

            JpaEntityMap map = (JpaEntityMap) path.firstInstanceOf(JpaEntityMap.class);
            JpaEntity target = map.entityForClass(relationship.getTargetEntityName());

            if (target == null) {
                context.recordConflict(new SimpleValidationFailure(
                        relationship,
                        "Invalid relationship target "
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.