Home @javax.persistence.Column( updatable=false )
Reply: 0

@javax.persistence.Column( updatable=false )

user381
1#
user381 Published in April 21, 2018, 10:31 pm

If I define a field as non-updatable, does that mean that the field can't be updated at all, ever? What I'd like to do is prevent the field from getting updated when I save an entire entity object, but still be able to write queries that explicitly update this field. Is this possible?

I'm using Hibernate and MySQL, but I'd prefer to write portable code.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.38342 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO