Examples of JpaManyToOne


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

            if (!super.onStartNode(path)) {
                return false;
            }

            JpaManyToOne manyToOne = (JpaManyToOne) path.getObject();
            Collection<JpaJoinColumn> joinColumns = manyToOne.getJoinColumns();
            if (joinColumns.isEmpty()) {
                joinColumns.add(new JpaJoinColumn(AnnotationPrototypes.getJoinColumn()));
            }

            return true;
View Full Code Here

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

        @Override
        void onManagedClass(
                JpaManagedClass managedClass,
                AnnotatedElement element,
                AnnotationProcessorStack context) {
            JpaManyToOne attribute = new JpaManyToOne(element
                    .getAnnotation(ManyToOne.class));
            managedClass.getAttributes().getManyToOneRelationships().add(attribute);
            context.push(attribute);
        }
View Full Code Here

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

            if (!super.onStartNode(path)) {
                return false;
            }

            JpaManyToOne manyToOne = (JpaManyToOne) path.getObject();
            Collection<JpaJoinColumn> joinColumns = manyToOne.getJoinColumns();
            if (joinColumns.isEmpty()) {
                joinColumns.add(new JpaJoinColumn(AnnotationPrototypes.getJoinColumn()));
            }

            return true;
View Full Code Here

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

        @Override
        void onManagedClass(
                JpaManagedClass managedClass,
                AnnotatedElement element,
                AnnotationProcessorStack context) {
            JpaManyToOne attribute = new JpaManyToOne(element
                    .getAnnotation(ManyToOne.class));
            managedClass.getAttributes().getManyToOneRelationships().add(attribute);
            context.push(attribute);
        }
View Full Code Here

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

        @Override
        void onManagedClass(
                JpaManagedClass managedClass,
                AnnotatedElement element,
                AnnotationProcessorStack context) {
            JpaManyToOne attribute = new JpaManyToOne(element
                    .getAnnotation(ManyToOne.class));
            managedClass.getAttributes().getManyToOneRelationships().add(attribute);
            context.push(attribute);
        }
View Full Code Here

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

            if (!super.onStartNode(path)) {
                return false;
            }

            JpaManyToOne manyToOne = (JpaManyToOne) path.getObject();
            Collection<JpaJoinColumn> joinColumns = manyToOne.getJoinColumns();
            if (joinColumns.isEmpty()) {
                joinColumns.add(new JpaJoinColumn(AnnotationPrototypes.getJoinColumn()));
            }

            return true;
View Full Code Here

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

        assertNotNull(e5.getAttributes().getBasicAttribute("attribute1"));
        assertNull(e5.getAttributes().getBasicAttribute("objectId"));
    }

    public void testTargetEntityNameToOne() {
        JpaManyToOne toBean2 = entity.getAttributes().getManyToOneRelationship("toBean2");
        assertNotNull(toBean2);
        assertEquals(MockAnnotatedBean1.class.getName(), toBean2.getTargetEntityName());
    }
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.