属性のあるEntity
とenum
カップル がありNamedQueries
ます。これらのうちの 1 つは、パラメータとして属性をNamedQueries
持っています。enum
SELECT m FROM Message m WHERE m.status = :status
クエリを実行しようとすると、次のエラーが発生します。
Caused by: java.lang.IllegalArgumentException: You have attempted to set a value of type class my.package.Status for parameter status with expected type of class my.package.Status from query string SELECT m FROM Message m WHERE m.status = :status.
トップリンクを使用しています
これはどのように?どうすればJPAを幸せにできますか?