Creating controller classes
Controller classes are used to simply manage/control the entities. Controller classes create the entity manager and use that manger to create, edit, delete, and find entities.
All the entity classes should be created before going to create the controller classes.
- Go to File | New File.
- Select Sales Processing System from Project drop-down list.
- Select Persistence from the Categories list.
- Select JPA Controller Classes from Entity Classes from the File Types list, as shown in the following screenshot:
- Click on Next.
- Add all the available entity classes, except
- Click ...