私はエンティティクラスを持っています
class B{
@ManyToOne(fetch = FetchType.EAGER)
private A a;
@ManyToOne(fetch = FetchType.LAZY)
private C c;
}
特定のシナリオでは、オブジェクト A を既に持っているため、オブジェクト A をロードしたくありません。Cについても同じです。しかし、これらは特定のシナリオであり、これらのオブジェクトをまったくロードしたくありません。
エンティティ オブジェクトの特定のプロパティを読み込まないように hibernate に指示する方法はありますか。{Eager/Fetch の提案はありません。これが特定の場合にのみ発生することを望んでいます]
注:現在、オブジェクトを取得するために Criteria を使用しています。