Package org.hibernate.annotations
Annotation Type ColumnTransformer
-
@Target({FIELD,METHOD}) @Retention(RUNTIME) @Repeatable(ColumnTransformers.class) public @interface ColumnTransformerCustom SQL expression used to read the value from and write a value to a column. Use for direct object loading/saving as well as queries. The write expression must contain exactly one '?' placeholder for the value. For example:read="decrypt(credit_card_num)" write="encrypt(?)"- See Also:
ColumnTransformers
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringforColumn(Logical) column name for which the expression is used.java.lang.StringreadCustom SQL expression used to read from the column.java.lang.StringwriteCustom SQL expression used to write to the column.
-