• 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

@joincolumn updatable false

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ranchers,

I am bit confused about the meaning of "updatable" and "insertable" in @joinColumn annotation.

Suppose I have something like this in my entity called "Player" (player_table):

public class Player implements Serializable{

@ManyToOne(....)
@JoinColumn(name = "user_id", referencedColumnName = "some_other_id", updatable = false, insertable= false)
private USER user;

}

So does this mean I can not update user_id from player table or I can not use user_id in "where clause" while updating record in player table ?

Thanks for you help.


 
Vivian Josh
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any ideas ?

No replies
 
reply
    Bookmark Topic Watch Topic
  • New Topic