How to check if my table has related records?

0

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.

    
asked by anonymous 20.04.2017 / 21:03

0 answers