I have a java app with JPA and I'm using oracle DB. One property of an entity needs to be encrypted before saved into the DB. I'm using application encryption, Base64. I have a named query searching for the entity according to this property. Now due to the encryption I need to first encrypt the value coming from the app and search in the DB for the encrypted value, but the query can't find the entity with this value.
Is there an issue with named queries with encrypted values?? Is there a solution for that?
Thanks