Siva, I'm thoroughly impressed by your work. Your ability to break down medium to complex concepts into easily understandable explanations is remarkable. I highly recommend your videos to anyone looking to improve their understanding of Spring Boot. Thank you for sharing such high-quality content!
@DileepKumar-kg7ve4 ай бұрын
Really Helpful with this series, learnt lot of new things which can be corelated to real-time applications. Great job keep helping us to learn more new things in java world.
@azdanov4 ай бұрын
Another way to avoid the problem of fetching lazy items is to use an EntityGraph annotation instead of a custom Query.
@sivalabs4 ай бұрын
Also, you can explore Blaze Persistence which provides some additional features on top of JPA.
@azdanov4 ай бұрын
It is also possible to rely on Spring Data to do automatically map to the projection by just specifying the return type in the repository without an explicit JPA Query. As long as the field names are the same in both the record and in the entity, then it will work.
@sivalabs4 ай бұрын
Yes. But I think it won't work if we are loading associated child collection and mapping to a Record.
@azdanov4 ай бұрын
@@sivalabs Yeah, it wouldn't work directly with OrderDTO. While OrderSummary worked for me.