xdoo / vaadin-demo

demo using vaadin with spring boot.
4 stars 2 forks source link

Fetch-Type im MicroService auf LAZY stellen #211

Closed FabianWilms closed 8 years ago

FabianWilms commented 8 years ago

Momentan ist der Fetch-Type bei Assoziationen überall auf EAGER gestellt. Dies führt zu Fehlverhalten der Suche. Bitte umstellen in allen Domain-Objekten.

maximilian-zollbrecht commented 8 years ago

Könnte andere Probleme bringen: martkhm/barrakuda#125 Relations konnten bei gleichen Entities nicht gesetzt werden. So eine Exception kam da in etwa.

FabianWilms commented 8 years ago

Konnte den Fehler nachvollziehen @maximilian-zollbrecht . Nachdem ich den Fetch.-Type wiede rauf EAGER umgestellt hatte, konnte ich wieder Partner und Kinder hinzufügen, allerdings bestand weiterhin das Problem, dass die Suche nicht ging. Zum testen habe ich abschließend garkeinen FetchType gesetzt (der Default bleibt EAGER) und (warum auch immer) funktioniert nun sowohl die Suche, als auch das hinzufügen von Assoziationen.

Da maxi jetzt erst Montag wieder kommt, sollte @peter-mueller sich meine Lösung mal anschauen und nach evtlen Fehlern suchen.

peter-mueller commented 8 years ago

:thumbsup:

Fabian Holtkötter notifications@github.com schrieb am Mo., 2. Nov. 2015, 14:23:

Closed #211 https://github.com/xdoo/vaadin-demo/issues/211 via #233 https://github.com/xdoo/vaadin-demo/pull/233.

— Reply to this email directly or view it on GitHub https://github.com/xdoo/vaadin-demo/issues/211#event-451950906.