8k views only. This video contains at least two interview questions. Thank you for everything Thorben.
@Togruls
4 жыл бұрын
Thanks! Need deep explanation JPA Graph Entity with example!
@Joseph-oz7tx
3 ай бұрын
like always very nice video.
@Gohel95
4 жыл бұрын
thanks for helping me because I face LazyInitializationException many times but didn't able to understand which solution is a batter choice.
@ThoughtsOnJava
4 жыл бұрын
I am glad this helped.
@Gohel95
4 жыл бұрын
while fetching data from the database sometimes we get recursive data with a stack overflow error, so which is the best way to solve it @jsonIgnore or @jsonBackReferecnce? everyone encounters this once while working with hibernate so what's your answer for this sir?
@varun104
3 жыл бұрын
So when you say use Graph or join fetch clause you mean not using the regular find methods of the entity manager and executing the query within the same session ?? Also, One day I fixed the exception using the @Transactional annotation. Does that mean, I opened the session again to load the lazy field ? Please let me know what your thoughts are. thanks
@TheMartin68261
Жыл бұрын
Is JPA 2.1 Supports JRE 7
@Gohel95
4 жыл бұрын
while fetching data from the database sometimes we get recursive data with a stack overflow error, so which is the best way to solve it @jsonIgnore or @jsonBackReferecnce? everyone encounters this once while working with hibernate so what's your answer for this sir?
@varun104
3 жыл бұрын
Never got
@krishnapanigrahi6926
3 жыл бұрын
If we declare entire method with @Trasactional then will not get this exception. This way is correct or not?
@varun104
3 жыл бұрын
You asked what I was thinking man. The other day even I fixed the issue by marking the method as @Transactional of spring framework. I think that opened the session again for the code we wrote in the method. But my technical manager accepted the solution. I hope he replies to this.
@RedJackWZ
3 жыл бұрын
I don't use @Transactional, I think you should use FTP instead
@meetmandhane
Жыл бұрын
Should we use @JsonIgnoreProperties({"hibernateLazyInitializer", "handler"}) on the class causing this error? This seems to fix the issue.
Пікірлер: 14