Hi all ,
i am getting a problem of updation of one of composite primary key in hibernate.
The name of the table is Employee_Relation
fields userId,typecode,backupUserId (three are composite primary key)and effectiveDate.
when for update query is generated by the hibernate is like that
"update EMPLOYEE_RELATIONSHIP set effectiveDate=? where userid=? and typecode=? and backupUserId=?"
But i want to generate a query like that
"update EMPLOYEE_RELATIONSHIP set effectiveDate=? ,backupUserId=?where userid=? and typecode=? "
Plese Help me to overcome that situation....
|