Easy learning with example program codes

Can we make an hibernate entity class final?

Yes, we can make a Hibernate Entity class final, but that’s not a good practice. Since, hibernate use proxy classes for lazy loading of data which is done by extending the entity bean. If the entity bean will be final then lazy loading will not be possible which results into low performance.

Related topics

Please follow and like us:

Copyright © 2020 CodesJava Protection Status