Examples of JpaEmbeddable


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

        public void onStartElement(
                AnnotatedElement element,
                AnnotationProcessorStack context) {

            JpaEmbeddable embeddable = new JpaEmbeddable();
            embeddable.setClassName(((Class<?>) element).getName());
            embeddable.setAttributes(new JpaAttributes());
            context.push(embeddable);
        }
View Full Code Here

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

        }

        public void onFinishElement(
                AnnotatedElement element,
                AnnotationProcessorStack context) {
            JpaEmbeddable embeddable = (JpaEmbeddable) context.pop();
            JpaEntityMap entityMap = (JpaEntityMap) context.peek();
            entityMap.getEmbeddables().add(embeddable);
        }
View Full Code Here

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

            addChildVisitor(JpaAttributes.class, attributeVisitor);
        }

        @Override
        Object createObject(ProjectPath path) {
            JpaEmbeddable jpaEmbeddable = (JpaEmbeddable) path.getObject();
            Embeddable embeddable = new Embeddable(jpaEmbeddable.getClassName());
            ((DataMap) targetPath.getObject()).addEmbeddable(embeddable);
            return embeddable;
        }
View Full Code Here

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

            entity.addAttribute(embedded);

            // for each embedded attribute, add all Embeddable attributes to DbEntity,
            // honoring @Column settings
            JpaEmbeddable jpaEmbeddable = path
                    .firstInstanceOf(JpaEntityMap.class)
                    .embeddableForClass(jpaEmbedded.getPropertyDescriptor().getType());

            for (JpaBasic jpaBasic : jpaEmbeddable.getAttributes().getBasicAttributes()) {

                JpaColumn column = jpaBasic.getColumn();
                String tableName = column.getTable() != null ? column.getTable() : entity
                        .getDbEntityName();
View Full Code Here

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

            addChildVisitor(JpaAttributes.class, attributeVisitor);
        }

        @Override
        Object createObject(ProjectPath path) {
            JpaEmbeddable jpaEmbeddable = (JpaEmbeddable) path.getObject();
            Embeddable embeddable = new Embeddable(jpaEmbeddable.getClassName());
            ((DataMap) targetPath.getObject()).addEmbeddable(embeddable);
            return embeddable;
        }
View Full Code Here

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

        public void onStartElement(
                AnnotatedElement element,
                AnnotationProcessorStack context) {

            JpaEmbeddable embeddable = new JpaEmbeddable();
            embeddable.setClassName(((Class<?>) element).getName());
            embeddable.setAttributes(new JpaAttributes());
            context.push(embeddable);
        }
View Full Code Here

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

        }

        public void onFinishElement(
                AnnotatedElement element,
                AnnotationProcessorStack context) {
            JpaEmbeddable embeddable = (JpaEmbeddable) context.pop();
            JpaEntityMap entityMap = (JpaEntityMap) context.peek();
            entityMap.getEmbeddables().add(embeddable);
        }
View Full Code Here

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

            entity.addAttribute(embedded);

            // for each embedded attribute, add all Embeddable attributes to DbEntity,
            // honoring @Column settings
            JpaEmbeddable jpaEmbeddable = path
                    .firstInstanceOf(JpaEntityMap.class)
                    .embeddableForClass(jpaEmbedded.getPropertyDescriptor().getType());

            for (JpaBasic jpaBasic : jpaEmbeddable.getAttributes().getBasicAttributes()) {

                JpaColumn column = jpaBasic.getColumn();
                String tableName = column.getTable() != null ? column.getTable() : entity
                        .getDbEntityName();
View Full Code Here

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

            SerialVersionUIDAdder e3 = new SerialVersionUIDAdder(e2);

            return e3;
        }

        JpaEmbeddable embeddable = entityMap.embeddableForClass(key);
        if (embeddable != null) {

            // create enhancer chain
            EmbeddableVisitor e1 = new EmbeddableVisitor(out);
View Full Code Here

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

        public void onStartElement(
                AnnotatedElement element,
                AnnotationProcessorStack context) {

            JpaEmbeddable embeddable = new JpaEmbeddable();
            embeddable.setClassName(((Class<?>) element).getName());
            embeddable.setAttributes(new JpaAttributes());
            context.push(embeddable);
        }
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.