Login
Remember
Register
Ask a Question
Can we declare the Entity class final?
0
votes
asked
Jul 29, 2024
in
Hibernate
by
rajeshsharma
Can we declare the Entity class final?
entity
class
final
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 29, 2024
by
rajeshsharma
No, the Entity class cannot be declared final, as Hibernate uses runtime proxies to enhance the class for persistence. Therefore, a final class cannot be subclassed and thus cannot be proxied.
...