Synchronizing an Entity Object with Changes to Its Database Table
If you alter a table for which you have already created an entity object, the existing entity is not disturbed by the presence of additional attributes in its underlying table. However, if you want to access the new table column in your application, you first need to synchronize the entity object with the database table. To perform this synchronization from JDeveloper, right-click the entity object in question and choose Synchronize with Database from the context menu.
For example, suppose you had issued the following SQL*Plus command to add a new SECURITY_QUESTION column to the USERS table:
ALTER TABLE USERS ADD (security_question VARCHAR2(60));
When you use the synchronize feature on the existing User entity, the Synchronize with Database dialog box proposes the changes that it can perform for you automatically. By clicking the desired button you can carry out the synchronization.