Search in sources :

Example 1 with ColumnTransformer

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

the class Ejb3Column method extractDataFromPropertyData.

//must only be called afterQuery all setters are defined and beforeQuery bind
private void extractDataFromPropertyData(PropertyData inferredData) {
    if (inferredData != null) {
        XProperty property = inferredData.getProperty();
        if (property != null) {
            processExpression(property.getAnnotation(ColumnTransformer.class));
            ColumnTransformers annotations = property.getAnnotation(ColumnTransformers.class);
            if (annotations != null) {
                for (ColumnTransformer annotation : annotations.value()) {
                    processExpression(annotation);
                }
            }
        }
    }
}
Also used : XProperty(org.hibernate.annotations.common.reflection.XProperty) ColumnTransformers(org.hibernate.annotations.ColumnTransformers) ColumnTransformer(org.hibernate.annotations.ColumnTransformer)

Aggregations

ColumnTransformer (org.hibernate.annotations.ColumnTransformer)1 ColumnTransformers (org.hibernate.annotations.ColumnTransformers)1 XProperty (org.hibernate.annotations.common.reflection.XProperty)1