Examples of JpaAttributes


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

                AnnotationProcessorStack context) {
            Entity entityAnnotation = element.getAnnotation(Entity.class);

            JpaEntity entity = new JpaEntity();
            entity.setClassName(((Class<?>) element).getName());
            entity.setAttributes(new JpaAttributes());

            if (!Util.isEmptyString(entityAnnotation.name())) {
                entity.setName(entityAnnotation.name());
            }
View Full Code Here

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

                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.JpaAttributes

                AnnotatedElement element,
                AnnotationProcessorStack context) {

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

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

            if (abstractEntity.getClassName() == null) {
                return false;
            }

            if (abstractEntity.getAttributes() == null) {
                abstractEntity.setAttributes(new JpaAttributes());
            }

            // * default persistent fields
            JpaClassDescriptor descriptor = abstractEntity.getClassDescriptor();

View Full Code Here

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

        void processProperty(
                JpaAbstractEntity entity,
                JpaClassDescriptor descriptor,
                JpaPropertyDescriptor property) {

            JpaAttributes attributes = entity.getAttributes();
            if (attributes.getAttribute(property.getName()) != null) {
                return;
            }

            if (property.isDefaultNonRelationalType()) {

                JpaBasic attribute = new JpaBasic();

                attribute.setPropertyDescriptor(property);
                attribute.setName(property.getName());
                attributes.getBasicAttributes().add(attribute);
            }
            else {
                String path = descriptor.getManagedClass().getName()
                        + "."
                        + property.getName();
View Full Code Here

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

                AnnotationProcessorStack context) {
            Entity entityAnnotation = element.getAnnotation(Entity.class);

            JpaEntity entity = new JpaEntity();
            entity.setClassName(((Class<?>) element).getName());
            entity.setAttributes(new JpaAttributes());

            if (!Util.isEmptyString(entityAnnotation.name())) {
                entity.setName(entityAnnotation.name());
            }
View Full Code Here

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

                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.JpaAttributes

                AnnotatedElement element,
                AnnotationProcessorStack context) {

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

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

                AnnotationProcessorStack context) {
            Entity entityAnnotation = element.getAnnotation(Entity.class);

            JpaEntity entity = new JpaEntity();
            entity.setClassName(((Class<?>) element).getName());
            entity.setAttributes(new JpaAttributes());

            if (!Util.isEmptyString(entityAnnotation.name())) {
                entity.setName(entityAnnotation.name());
            }
View Full Code Here

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

                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.