Package javax.persistence.metamodel.Attribute

Examples of javax.persistence.metamodel.Attribute.PersistentAttributeType


        // Check for need to Exclude
        if (isExcluded((JPAEdmPropertyView) JPAEdmProperty.this, entityTypeName, currentAttribute.getName())) {
          continue;
        }

        PersistentAttributeType attributeType = currentAttribute
            .getPersistentAttributeType();

        switch (attributeType) {
        case BASIC:
          currentSimpleProperty = new SimpleProperty();
View Full Code Here


     *            the member
     * @return the persistent attribute type
     */
    static PersistentAttributeType getPersistentAttributeType(Field member)
    {
        PersistentAttributeType attributeType = PersistentAttributeType.BASIC;
        if (member.isAnnotationPresent(ElementCollection.class))
        {
            attributeType = PersistentAttributeType.ELEMENT_COLLECTION;
        }
        else if (member.isAnnotationPresent(OneToMany.class))
View Full Code Here

         * @return the type
         */
        <T> Type<T> buildType(Class<T> attribType)
        {
            // Only in case of Map attribute attribute will be null;
            PersistentAttributeType attributeType = attribute != null ? MetaModelBuilder
                    .getPersistentAttributeType(attribute) : persistentAttribType;
            switch (attributeType)
            {
            case BASIC:
                return new DefaultBasicType<T>(attribType);
View Full Code Here

        // Check for need to Exclude
        if (isExcluded((JPAEdmPropertyView) JPAEdmProperty.this, entityTypeName, currentAttribute.getName())) {
          continue;
        }

        PersistentAttributeType attributeType = currentAttribute
            .getPersistentAttributeType();

        switch (attributeType) {
        case BASIC:
View Full Code Here

TOP

Related Classes of javax.persistence.metamodel.Attribute.PersistentAttributeType

Copyright © 2018 www.massapicom. 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.