I was using the method that was referenced in andrescanavesi's answer to DataBase encryption in Hibernate and I get the following error:
Unknown column 'encryptedBody' in 'field list'
the generated sql is:
select AES_DECRYPT(
partssns5_.encryptedBody,
'8269b021365180477478ba97d881db71d05a1')
AS PSS_SSN_4_264_4_ from part_ssn partssns5_;
encryptedbody is defined in mysql as varbinary
any ideas???