kullanarak aynı varlık sınıfında 2 liste kullanamıyorum bir çok ilişki var çok var bir varlık sınıfı uyguluyor ama fetch = FetchType.EAGER iki liste i kullanamıyor Her ikiNeden FetchType.EAGER
için FetchType.LAZY kullanmalıdır Evet hem
@OneToMany(mappedBy="fournisseur",fetch = FetchType.EAGER,cascade={ CascadeType.PERSIST,CascadeType.MERGE,CascadeType.REMOVE})
private List<Carburant_entree> carburant_entrees;
@OneToMany(mappedBy="user",fetch = FetchType.EAGER,cascade={ CascadeType.PERSIST,CascadeType.MERGE,CascadeType.REMOVE})
private List<Users> theusers;
Olası yinelenen [Birden çok çanta aynı anda getiremiyorsanız] (http://stackoverflow.com/questions/4334970/hibernate-cannot-simultaneously-fetch-multiple-bags) @lazycollection anotation'ı kullanmaya çalıştığımda –