E
- The type of the container classT
- The type of the propertypublic class VersionProperty<E,T> extends PrimitiveProperty<E,T>
Version
.Constructor and Description |
---|
VersionProperty(GeneratorContext context,
String table,
AttributeAccessor attribute,
javax.persistence.Column column)
Creates a new instance of
VersionProperty . |
Modifier and Type | Method and Description |
---|---|
protected String |
getDefaultValue(AttributeAccessor attribute)
Finds the default value from the given attribute.
|
addInsertExpression, createConverter, getDialect, getExpression, getPredicate
getColumn, isTableColumn
createPostInsertStatements, createPreInsertStatements, failIfRequired, findReferencedEntities, generatePendingStatements, getName, getValue, isRequired, setValue, toString
public VersionProperty(GeneratorContext context, String table, AttributeAccessor attribute, javax.persistence.Column column)
VersionProperty
.context
- the current contexttable
- the table that the column belongs toattribute
- the accessor of the version attributecolumn
- the column annotationprotected String getDefaultValue(AttributeAccessor attribute)
PrimitiveProperty
getDefaultValue
in class PrimitiveProperty<E,T>
attribute
- the current attribute of the propertynull
if none is setDefaultValue.value()
Copyright © 2016 fastnate.org. All rights reserved.