[英]“DataBase encryption in Hibernate” returns Unknown column 'encryptedBody' in 'field list'
I was using the method that was referenced in andrescanavesi's answer to DataBase encryption in Hibernate and I get the following error: 我正在使用andrescanavesi 在Hibernate中对DataBase加密的回答中引用的方法,我收到以下错误:
Unknown column 'encryptedBody' in 'field list' '字段列表'中的未知列'encryptedBody'
the generated sql is: 生成的sql是:
select AES_DECRYPT(
partssns5_.encryptedBody,
'8269b021365180477478ba97d881db71d05a1')
AS PSS_SSN_4_264_4_ from part_ssn partssns5_;
encryptedbody is defined in mysql as varbinary encryptedbody在mysql中定义为varbinary
any ideas??? 有任何想法吗???
Ooops, 哎呀,
Don't know how many times I have done that as a developer, but I was testing SQL Workbench in the correct db, but the application was pointing to a different db, where that column did not exist. 不知道我作为开发人员做了多少次,但是我在正确的数据库中测试了SQL Workbench,但是应用程序指向了一个不同的数据库,其中该列不存在。
Ooops. 糟糕!
Sorry about that. 对于那个很抱歉。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.