私はプレイを設定しています!既存のデータベースを持つ 2 アプリケーション。エンティティが新しいアプリに移植されました。アプリケーションを実行すると、以前のアプリケーションのように CamelCase ではなく、ebean によって生成された SQL が undercase_notation を使用するため、 PersistenceExceptionが発生します。したがって、私のrestfulIdentifierプロパティは、 restfulIdentifier_id ではなくrestful_identifier_idになります。
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 = ?