complexType column

complexType {http://java.sun.com/xml/ns/persistence/orm}column

Abstractfalse (This can be used in an instance)
Target Namespacehttp://java.sun.com/xml/ns/persistence/orm
Declared Namespacesxmlns:orm=http://java.sun.com/xml/ns/persistence/orm
xmlns:xsd=http://www.w3.org/2001/XMLSchema


Source

<xsd:complexType name="column">
    <
xsd:annotation>
        <
xsd:documentation>
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface Column {
String name() default "";
boolean unique() default false;
boolean nullable() default true;
boolean insertable() default true;
boolean updatable() default true;
String columnDefinition() default "";
String table() default "";
int length() default 255;
int precision() default 0; // decimal precision
int scale() default 0; // decimal scale
}
        
</xsd:documentation>
    </
xsd:annotation>
    <
xsd:attribute name="name" type="xsd:string"/>
    <
xsd:attribute name="unique" type="xsd:boolean"/>
    <
xsd:attribute name="nullable" type="xsd:boolean"/>
    <
xsd:attribute name="insertable" type="xsd:boolean"/>
    <
xsd:attribute name="updatable" type="xsd:boolean"/>
    <
xsd:attribute name="column-definition" type="xsd:string"/>
    <
xsd:attribute name="table" type="xsd:string"/>
    <
xsd:attribute name="length" type="xsd:int"/>
    <
xsd:attribute name="precision" type="xsd:int"/>
    <
xsd:attribute name="scale" type="xsd:int"/>
</
xsd:complexType>


Documentation

@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface Column {
  String name() default "";
  boolean unique() default false;
  boolean nullable() default true;
  boolean insertable() default true;
  boolean updatable() default true;
  String columnDefinition() default "";
  String table() default "";
  int length() default 255;
  int precision() default 0; // decimal precision
  int scale() default 0; // decimal scale
}


complexType column


Stylus Studio XML Schema Library Home
Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio®, a product from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2006 All Rights Reserved.