NetBeans重构Hibernate映射文件(NetBeans refactoring Hibernate mapping files)

编程入门 行业动态 更新时间:2024-10-22 21:41:47
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 ...

更多推荐

本文发布于:2023-08-04 16:37:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1417670.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重构   文件   Hibernate   NetBeans   mapping

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!