Renaming an EJB can be an involved process because all of the EJB classes will
have to be renamed/refactored. JDeveloper provides a useful tool that renames
an EJB and all its classes.
To rename an EJB and all its classes:
- In the Navigator, right click on the Departments
entity bean and choose Rename EJB and EJB Classes.
The Rename EJB and Classes dialog opens.
- In the dialog, change the EJB Name to
Dept.
- Click OK.
- A message box will tell you that you cannot undo this operation. Click Yes
to continue.
- If you get a message box about setting the Update Imports property, click
Yes.
- Click OK to close the message box that tells
you the operation is complete.
