How to map encrypted database columns with Hibernate’s @ColumnTransformer annotation

How to map encrypted database columns with Hibernate’s @ColumnTransformer annotation

A few days ago, someone asked me how to map an encrypted database column to an entity attribute. I remembered that I used a @ColumnTransformer for a similar use case, a few years ago. A quick chat with the Hibernate team confirmed that they hadn’t done any major changes in that area and that the…