javax.persistence
Annotation Type Column


@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface Column

The @Column annotation.


Optional Element Summary
 java.lang.String columnDefinition
           
 boolean insertable
           
 int length
           
 java.lang.String name
           
 boolean nullable
           
 int precision
           
 int scale
           
 java.lang.String table
           
 boolean unique
           
 boolean updatable
           
 

name

public abstract java.lang.String name
Default:
""

unique

public abstract boolean unique
Default:
false

nullable

public abstract boolean nullable
Default:
true

insertable

public abstract boolean insertable
Default:
true

updatable

public abstract boolean updatable
Default:
true

columnDefinition

public abstract java.lang.String columnDefinition
Default:
""

table

public abstract java.lang.String table
Default:
""

length

public abstract int length
Default:
255

precision

public abstract int precision
Default:
0

scale

public abstract int scale
Default:
0