IntelliJ Java IDE
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Modify Primary-key? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "Modify Primary-key?" Watch "Modify Primary-key?" New topic
Author

Modify Primary-key?

Aleks V. Pascoal
Ranch Hand

Joined: Apr 21, 2002
Posts: 72
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

Joined: Feb 27, 2002
Posts: 8845

The primary key value of the entity should not be changed as per the spec.


Groovy
 
 
subject: Modify Primary-key?
 
Threads others viewed
HFEJB question 46 from mock exam
I defined field "Hotel Name " and field "City" as union primary key,is that ok?
Mock Exam, Page 370, Question 13, C
Nx: Documenting DuplicateKeyException
autoincrement invoice
IntelliJ Java IDE