I'm developing a project using JPA and with various relationship types like OneToMany, ManyToMany, etc. Is there any way I can check if an X table for example has related records in another Y table?
I can use Reflection but I do not see this solution as ideal, I have read that it may slow application performance.
What do you think?
Thank you for your attention.