Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

daniele licitra
Ranch Hand
Posts: 81
Java Linux Netbeans IDE
  • 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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!