property.setType(readType(element)); property.setCollection(isCollectionType(element)); property.setNullable(Boolean.parseBoolean(attr(element, "Nullable") == null ? "true" : attr( element, "Nullable"))); if (attr(element, "Unicode") != null) {
property.setType(readType(element)); property.setCollection(isCollectionType(element)); property.setNullable(Boolean.parseBoolean(attr(element, "Nullable") == null ? "true" : attr( element, "Nullable"))); if (attr(element, "Unicode") != null) {
.setName(c.getName()) .setType(ODataTypeManager.odataType(c).getFullQualifiedName()) .setNullable(nullable);
case INT32: property.setType(EdmPrimitiveTypeKind.Int32.getFullQualifiedName()); property.setNullable(column.isNullable()); property.setMaxLength(column.getMaxLength()); break; case INT16: property.setType(EdmPrimitiveTypeKind.Int16.getFullQualifiedName()); property.setNullable(column.isNullable()); property.setMaxLength(column.getMaxLength()); break; property.setPrecision(column.getPrecision()); property.setScale(column.getScale()); property.setNullable(column.isNullable()); break; case STRING: property.setType(EdmPrimitiveTypeKind.String.getFullQualifiedName()); property.setMaxLength(column.getMaxLength()); property.setNullable(column.isNullable()); break; case BOOLEAN: property.setType(EdmPrimitiveTypeKind.Boolean.getFullQualifiedName()); property.setNullable(column.isNullable()); property.setMaxLength(column.getMaxLength()); break; case BINARY: property.setType(EdmPrimitiveTypeKind.Binary.getFullQualifiedName()); property.setNullable(column.isNullable()); property.setMaxLength(column.getMaxLength());
final Column jpaColumn = ((AnnotatedElement) jpaAttribute.getJavaMember()).getAnnotation(Column.class); if (jpaColumn != null) { edmProperty.setNullable(jpaColumn.nullable()); edmProperty.setSrid(getSRID()); edmProperty.setDefaultValue(getDeafultValue());