Open maxtar opened 11 hours ago
Perform your transformation in a custom SqlType
implementation.
public object CustomSqlType : SqlType<String>(Types.VARCHAR, "varchar") {
override fun doSetParameter(ps: PreparedStatement, index: Int, parameter: String) {
}
override fun doGetResult(rs: ResultSet, index: Int): String? {
}
}
And what I need write in transformation? SQL? Sql request for this field looks like
SELECT pgp_sym_decrypt(field, CURRENT_SETTING('encrypt.key')),
FROM table;
We are use Postgres DB. And one table has encrypted field. For encrypting/decrypting this field in hibernate uses ColumnTransformer annotation like this:
how I can use something like this in ktorm?