DangerMouse wrote:
Im very new to Hibernate. I have a backend MySQL Database which uses AES_ENCRYPT and AES_DECRYPT for certian fields. Does hibernate allow for you to get these encrypted fields returned? And if so, whats needed to be done.?
You can try to use SQL replaces constructions to replace some parts of SQL before it gone to server. So one can translate:
SELECT a.id, a.name FROM table a WHERE a.id=1
to
SELECT a.id, a.name FROM (SELECT b.id id, AES_DECRYPT(b.name, ...) name FROM table b) a WHERE a.id=1