Problems with entity classes in netbeans

0

I'm doing a job with JSf in netbeans; I brought my work project and I tried to edit it in linux Netbeans. The problem is that I eliminate an entity class for a table in my database which is related to other entities ... Despite having made a refactor, when creating a new entity with the same relationships, this one creates me for example Entity Task has relation with file I delete task and recreate it Entity Task has relation with file_1

I do not understand why you recreate another entity file with _1

Please, I need your help to understand what I'm doing wrong.

    
asked by Pedro Acosta Pilataxi 05.11.2017 в 18:54
source

1 answer

0

As I see are details of the Netbeans IDE, it is not a fundamental problem of Java technology.

In similar cases like yours, I created a separate test project and told Netbeans to automatically generate the entities from the tables I require.

When the IDE does its job, I copy the entity I need from the test project and paste it into the original project, refactor any package details and so on and that's it. In these cases I think it is more practical as well ... because the IDE is in trouble to "understand" and do things correctly many times.

Greetings.

    
answered by 30.01.2018 в 16:57