[AlwaysEncrypted] Insert in join tables with @ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE })

Description

Hi !

I have configured my app with mssql-jdbc driver and always encrypted turned on.
I have an entity with a @ManyToMany association as described :

I configured hibernate with

When I try to save my entity, insert is done in the join table but I get an error :

Do i have to fix length for every field because i use always encrypted ?

Activity

Show:

Romain Wilbert March 31, 2020 at 4:09 PM

I added @Nationalized on the entity that has the AUTH_NAME column and it works...
I thought that hibernate.use_nationalized_character_data = true was enough to handle this issue ?

Details

Assignee

Reporter

Components

Affects versions

Priority

Created March 31, 2020 at 3:37 PM
Updated March 31, 2020 at 4:09 PM