0 votes
in JAVA by
Why we should not Make an Entity Class final?

1 Answer

0 votes
by

Hibernate uses proxy classes for lazy loading of data, only when it’s needed. This is done by extending the entity bean, if the entity bean will be final then lazy loading will not be possible, hence low performance.

Related questions

+1 vote
asked Dec 16, 2020 in JAVA by SakshiSharma
+1 vote
asked Mar 16, 2021 in JAVA by Robindeniel
...