Search in sources :

Example 1 with Source

use of org.hibernate.annotations.Source in project hibernate-orm by hibernate.

the class AnnotationBinder method setVersionInformation.

private static void setVersionInformation(XProperty property, PropertyBinder propertyBinder) {
    propertyBinder.getBasicValueBinder().setVersion(true);
    if (property.isAnnotationPresent(Source.class)) {
        Source source = property.getAnnotation(Source.class);
        propertyBinder.getBasicValueBinder().setTimestampVersionType(source.value().typeName());
    }
}
Also used : Source(org.hibernate.annotations.Source)

Aggregations

Source (org.hibernate.annotations.Source)1