Hibernate version:
2.1.6
Name and version of the database you are using:
MSSQL 2000
My first question: can hibernate update a persisted object's composite primary key? i.e., I initially insert into the database my object, X, which has a composite PK of [model: ford, year: 2000]. I later decide it should [model: ford, year: 2001]. Can hibernate take care of this issue for me if both of these columns are mapped in the composite pk?
My second question: if the answer to the first question is "yes", then how do I do it? :)
And yes, I know that composite id's are typically bad - but the database schema canNOT change, so using a synthetic key is not possible.
Thanks a bunch,
Jon
|