Hibernate - update the primary key 'id' column in the table

前端 未结 6 1442
猫巷女王i
猫巷女王i 2021-01-18 06:35

In my Java applicaion, I am using hibernate .hbm file to access database; Is this possible to update the primary key \'id\' column in the table; Where the \'id\' column in m

6条回答
  •  误落风尘
    2021-01-18 06:51

    try to writing query like

    update table_name set id=value where...............(specify remaining conditions)

提交回复
热议问题