views:

45

answers:

1

I think that it makes sense for the entity variables to not be final as they are synchronized with the DB, but why for class and methods ??

+1  A: 

Because persistence providers make proxies of objects using some library like CGLIB or javassist. These proxies are creating runtime subclasses of the entities. That's why they should not be final.

Bozho