Examples of addIntegerAttribute()


Examples of org.springframework.roo.classpath.details.annotations.AnnotationMetadataBuilder.addIntegerAttribute()

            // Add length attribute for String field
            if (identifier != null && identifier.getColumnSize() > 0
                    && identifier.getColumnSize() < 4000
                    && identifierType.equals(JavaType.STRING)) {
                columnBuilder.addIntegerAttribute("length",
                        identifier.getColumnSize());
            }

            // Add precision and scale attributes for numeric field
            if (identifier != null
View Full Code Here

Examples of org.springframework.roo.classpath.details.annotations.AnnotationMetadataBuilder.addIntegerAttribute()

            if (identifier != null
                    && identifier.getScale() > 0
                    && (identifierType.equals(JavaType.DOUBLE_OBJECT)
                            || identifierType.equals(JavaType.DOUBLE_PRIMITIVE) || identifierType
                                .equals(BIG_DECIMAL))) {
                columnBuilder.addIntegerAttribute("precision",
                        identifier.getColumnSize());
                columnBuilder.addIntegerAttribute("scale",
                        identifier.getScale());
            }
View Full Code Here

Examples of org.springframework.roo.classpath.details.annotations.AnnotationMetadataBuilder.addIntegerAttribute()

                    && (identifierType.equals(JavaType.DOUBLE_OBJECT)
                            || identifierType.equals(JavaType.DOUBLE_PRIMITIVE) || identifierType
                                .equals(BIG_DECIMAL))) {
                columnBuilder.addIntegerAttribute("precision",
                        identifier.getColumnSize());
                columnBuilder.addIntegerAttribute("scale",
                        identifier.getScale());
            }

            annotations.add(columnBuilder);
        }
View Full Code Here

Examples of org.springframework.roo.classpath.details.annotations.AnnotationMetadataBuilder.addIntegerAttribute()

        columnBuilder.addBooleanAttribute("nullable", false);

        // Add length attribute for Strings
        if (identifier.getColumnSize() < 4000
                && identifier.getFieldType().equals(JavaType.STRING)) {
            columnBuilder.addIntegerAttribute("length",
                    identifier.getColumnSize());
        }

        // Add precision and scale attributes for numeric fields
        if (identifier.getScale() > 0
View Full Code Here

Examples of org.springframework.roo.classpath.details.annotations.AnnotationMetadataBuilder.addIntegerAttribute()

        if (identifier.getScale() > 0
                && (identifier.getFieldType().equals(JavaType.DOUBLE_OBJECT)
                        || identifier.getFieldType().equals(
                                JavaType.DOUBLE_PRIMITIVE) || identifier
                        .getFieldType().equals(BIG_DECIMAL))) {
            columnBuilder.addIntegerAttribute("precision",
                    identifier.getColumnSize());
            columnBuilder.addIntegerAttribute("scale", identifier.getScale());
        }

        return columnBuilder;
View Full Code Here

Examples of org.springframework.roo.classpath.details.annotations.AnnotationMetadataBuilder.addIntegerAttribute()

                        || identifier.getFieldType().equals(
                                JavaType.DOUBLE_PRIMITIVE) || identifier
                        .getFieldType().equals(BIG_DECIMAL))) {
            columnBuilder.addIntegerAttribute("precision",
                    identifier.getColumnSize());
            columnBuilder.addIntegerAttribute("scale", identifier.getScale());
        }

        return columnBuilder;
    }
View Full Code Here

Examples of org.springframework.roo.classpath.details.annotations.AnnotationMetadataBuilder.addIntegerAttribute()

        }

        // Add length attribute for Strings
        int columnSize = column.getColumnSize();
        if (columnSize < 4000 && fieldType.equals(JavaType.STRING)) {
            columnBuilder.addIntegerAttribute("length", columnSize);
        }

        // Add precision and scale attributes for numeric fields
        if (columnSize > 0 && JdkJavaType.isDecimalType(fieldType)) {
            columnBuilder.addIntegerAttribute("precision", columnSize);
View Full Code Here

Examples of org.springframework.roo.classpath.details.annotations.AnnotationMetadataBuilder.addIntegerAttribute()

            columnBuilder.addIntegerAttribute("length", columnSize);
        }

        // Add precision and scale attributes for numeric fields
        if (columnSize > 0 && JdkJavaType.isDecimalType(fieldType)) {
            columnBuilder.addIntegerAttribute("precision", columnSize);
            int scale = column.getScale();
            if (scale > 0) {
                columnBuilder.addIntegerAttribute("scale", scale);
            }
        }
View Full Code Here

Examples of org.springframework.roo.classpath.details.annotations.AnnotationMetadataBuilder.addIntegerAttribute()

        // Add precision and scale attributes for numeric fields
        if (columnSize > 0 && JdkJavaType.isDecimalType(fieldType)) {
            columnBuilder.addIntegerAttribute("precision", columnSize);
            int scale = column.getScale();
            if (scale > 0) {
                columnBuilder.addIntegerAttribute("scale", scale);
            }
        }

        // Add unique = true to @Column if applicable
        if (column.isUnique()) {
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.