Schema Generator Property Editor
See Also
You open this property editor from the CMP Resource tab in the Sun Configuration pane of the sun-ejb-jar.xml
visual editor. You use this property editor to configure schema-generator-properties
elements.
When adding or editing the properties, both the name and value fields must be filled.
The name element can have the following properties:
- use-unique-table-names This specifies that generated table names are unique within each
application server domain. This property can be overridden during deployment. The default value for this property is False.
- bean_name.field_name.attribute This is the format for the property specifying field-specific
column attributes in property subelements. The following is an example of the usage of the format:
Employee.firstName.jdbc-type where Employee is the bean name, firstName is the
field name, and jdbc-type is the attribute. The following are valid atttributes:
- jdbc-type Specifies the JDBC type of the column created for the CMP field. The actual SQL type generated is based on this JDBC type but is database vendor specific.
- jdbc-maximum-length Specifies the maximum number of characters stored in the column corresponding to the CMP field.
Applies only when the actual SQL that is generated for the column requires a length.
- jdbc-precision Specifies the maximum number of digits stored in a column which represents a numeric type.
- jdbc-scale Specifies the number of digits stored to the right of the decimal point in a column that represents a floating point number.
- jdbc-nullable Specifies whether the column generated for the CMP field allows null values.
- See Also
- Visual Editor: Sun Configuration
- About Entity Beans
- Configuring EJB Deployment Descriptors
Legal Notices