How to update a project in Netbeans 8.2 with JAVA JSF 2.2 and Primefaces 5.0, if two fields are added to a table in the Database

0

Greetings please if you can help me with this problem.

The problem is that I already move forward with several changes on the project and I would not like to create a new project for nothing but increase 2 fields in the table. In my project I use the classes "Entity classes from the basis of data "and then the" JSF pages from entity classes ", as the image shows:

And everything works fine, but in the table named "OrdenTrabajo" 2 new columns were increased and with the value of the last one I want to make a traffic light to alert the user, but that's something else:

how do I update so that the new columns appear without damaging the css or pe property of the program, which I already tried to overwrite but the project is damaged.

Maybe someone already happened to him. Thank you so much.

    
asked by gorkyvtn 28.09.2018 в 18:32
source

1 answer

0

First, if you have used the same IDE to generate the Entities, you must surely have one class per table.

Check the class that is related to the table, and then in that class, add the 2 fields that you also added to the table, with their annotations or their settings if they are XML.

Then, for your Datatable on screen, add the new columns, and in each one specify the new properties that you added to your class and also to your table.

Greetings

    
answered by 08.10.2018 / 00:15
source