Hibernate / Hibernate interview questions
Hibernate: Can a Entity Class be declared final?
Yes, a Hibernate Entity class can be declared final, however it is not a good practice.
Hibernate uses the proxy pattern for performance improvement during lazy association, by making an entity final, Hibernate will no longer be able to use a proxy as Java doesn't allow the final class to be extended.
More Related questions...