use of javax.jdo.metadata.ValueMetadata in project motech by motech.
the class EntityMetadataBuilderImpl method copyParametersFromValueAnnotation.
private void copyParametersFromValueAnnotation(FieldMetadata fmd, Value valueAnnotation) {
ValueMetadata valueMetadata = fmd.newValueMetadata();
for (Column column : valueAnnotation.columns()) {
ColumnMetadata colMd = valueMetadata.newColumnMetadata();
colMd.setName(column.name());
colMd.setLength(column.length());
colMd.setAllowsNull(Boolean.parseBoolean(column.allowsNull()));
colMd.setDefaultValue(column.defaultValue());
colMd.setInsertValue(column.insertValue());
colMd.setJDBCType(column.jdbcType());
colMd.setSQLType(column.sqlType());
}
}
Aggregations