2011-07-08 6 views
0

リストオブジェクトのサブエンティティ非キーフィールドの制限付きで休止状態を使用します。サブエンティティ非プライマリキーの問題に関する制限付きクエリのクエリ

criteria.add(Restrictions.eq( "template.orientation"、orientation));私は次の例外が解雇これを実行しようとしていたときに「template.orientationは」articleTemplate.template

フィールドである

org.hibernate.QueryException:プロパティを解決できませんでした:のtemplate.orientation:com.media.web.bean.ArticleTemplateは

あなたは私を助けることができますか?

+0

エンティティとその関係、およびCriteriaインスタンスの作成に使用されたコードを示すことで明確にしてください。 –

+0

おそらくcomrad 674714も彼の答えのいくつかで投票を開始するべきです。 –

答えて

0

ArticleTemplateにゲッターとセッターがありますか? ie:template.getOrientation() and template.setOrientation(Orientation)

+0

はい私は両方とも持っています –

+0

はい私は持っています –