Joined: Fri Jun 30, 2006 12:11 am Posts: 7 Location: Pune
|
Hibernate implements JPA 2.0 specification which states that if a column annotation has an attribute updatable=false, the column will not be included in the SQL update statements generated by persistence provider.
When I tried this in a test, I observed that the column value can still be updated using an JPQL (Java Persistence Query Language) query like "update Employee emp set emp.description = 'should not be updated' where emp.id = 1".
Is that a bug in the hibernate implementation of JPA?
|
|