CodesJava

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



Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap