NetBeans重构Hibernate映射文件(NetBeans refactoring Hibernate mapping files)
当我进行重构时,例如在netbeans中重命名字段时,hibernate映射文件会相应更新。 如果整个文件没有完全重新格式化,这可能会让bean变得更好。 所以我宁愿没有这个功能。 有没有办法禁止netbeans修改hibernate映射文件?
When I do a refactoring such as renaming a field in netbeans, the hibernate mapping files are updated accordingly. This could have bean a good thing if the whole files were not completely reformatted. So I would rather not have this feature. Is there a way to disallow the modification of hibernate mapping files by netbeans?
最满意答案
您可以定期重命名字段而不重构重命名,或者当您重构重命名CTRL + R(默认情况下)时,您可以选择预览并选择所有需要的更改...
You can do regular rename of a field not refactor rename or also when you do refactor rename CTRL+R(by default) you can choose preview and the select all the needed changes ...
更多推荐
发布评论