i have a quite classical issus : Access Lazy Collection outside of the DAO, witch lead to LazyInitializationException.
Is that a clean and reasonable solution to use @Transactional
one some method of the service, outside of the DAO, who use these lazy collection ?
Thanks
Yes it is. The one who knows which tasks must be a unit of work (a Transaction) is the service, because it is the one who "knows" the business.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With