NetBeans Refactoring for Hibernate Mapping Files

When I do refactoring, for example renaming a field to netbeans, the hibernate mapping files are updated accordingly. This could bean a good thing if all the files were not completely reformatted. Therefore, I would prefer not to use this feature. Is there any way to prevent hibernate mapping files from being modified using netbeans?

+3
source share
2 answers

You can regularly rename a field without renaming refactoring, and when you rename CTRL + R by refactoring (by default), you can choose a preview and select all the necessary changes ...

0
source

This is a refactoring point; it changes everything in your project in accordance with your new changes. If you do not want the files to be dynamically updated at a repeated ratio, I suggest you remove them from your project. This allows you to continue to use the reuse function without dropping files that you do not want to modify.

EDIT: Also, you can check this out , it is on Google books and talks a bit about netbeans re-factoring.

+2
source

Source: https://habr.com/ru/post/1712929/


All Articles