Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

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
  • 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?
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic