@Retention(value=RUNTIME)
@Target(value=FIELD)
@Inherited
public @interface DEFAULT
expression()
, if not set (default value) than next step, otherwise creating DEFAULT constraint with this expression.
literalValue()
, if not set (default value) than next step, otherwise creating DEFAULT constraint with this value.
predefinedLiteralValue()
, if not set (default value) than next step, otherwise using one of predefined literals such as TRUE or CURRENT_DATE defined in
LiteralValues
.
signedInteger()
, if not set than would be created DEFAULT constraint with value 0 (DEFAULT 0)
Created by akaish on 30.04.2018.Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
expression
Any expression to be used.
|
java.lang.String |
literalValue
Any literal value that should be used in DEFAULT constraint.
|
LiteralValues |
predefinedLiteralValue
Predefined literal value, see
LiteralValues |
int |
signedInteger
Signed int value for DEFAULT constraint.
|
public abstract LiteralValues predefinedLiteralValue
LiteralValues
LiteralValues.NOT_SET_SKIP_THIS_LITERAL
if this field should be treated as null (not set)public abstract java.lang.String literalValue
KittyConstants.ZERO_LENGTH_STRING
(if not set)