• Post Reply Bookmark Topic Watch Topic
  • New Topic

Modify Primary-key?

 
Aleks V. Pascoal
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
I have a table with a primary-key composed of 3 fields. I want to change one of then, how can I do that? The specification says that i can you sets to fields of the primary-key clas, so? My temporary solution is removing and creating the entity again with the new primary.
Thanks.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The primary key value of the entity should not be changed as per the spec.
 
It will give me the powers of the gods. Not bad for a tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!