-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: JPA implementation of updatable=false
PostPosted: Sat Oct 22, 2011 12:16 pm 
Newbie

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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.