@javax.persistence.Column( updatable=false )
Run Code Online (Sandbox Code Playgroud)
The column mapped would not be updatable using HQL or via hibernate methods. In case you need to update the value in the DB you should be writing native SQL.
如果我从逻辑上看,当你说时它不应该允许你更新updatable=false
| 归档时间: |
|
| 查看次数: |
10303 次 |
| 最近记录: |