• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JPA and Eclipselink: annotation Column with updatable=false how it work?

 
Ranch Hand
Posts: 82
Netbeans IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've an entity with a field:

I modified the entity and the field ins_time with jpa and it has generated the query:

UPDATE applicazioni SET upd_time = ?, upd_user = ? WHERE (ID = ?)
bind => [, 2014-10-31 11:36:25.837, system, 14868]

it has removed the field ins_time.
In the database i've no change on the ins_time field.

If i use persistence to get records, i see the ins_time updated... so the data on the database are different respect the jpa-obtained ones.

Am I missing something on updatable annotation?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic