我正在设置Play! 2应用程序与已有的数据库。这些实体已被移植到新的应用程序。在运行应用程序时,我得到一个PersistenceException因为 由ebean生成的sql使用undercase_notation而不是像我在前面的应用程序 中那样使用CamelCase。所以我的restfulIdentifier财产变成restful_identifier_id 而不是restfulIdentifier_id。Ebean按预期生成带有undercase_notation而非CamelCase的sql
我已阅读文档http://www.avaje.org/ebean/getstarted_props.html但我找不到设置。
堆栈:
PersistenceException: Query threw SQLException:Unknown column 't0.restful_identifier_id'
in 'field list' Bind values:[200926947] Query was: select t0.id c0, t0.name c1, t0.state c2,
t0.restful_identifier_id c3 from company t0 where t0.id = ?