One-to-One Self-Referencing Relationship Demo

This lesson contains the implementation of the one-to-one self-referencing relationship.

We'll cover the following

The implementation

Provided below is the implementation of the complete application setup we designed in this chapter. Press the ‘run’ button below and try to use the application by interacting with the UI.

You can also switch to the terminal tab to run test cases using the following command:

mvn test

Note: If you plan to run the test cases, you will need to halt the current application server and change the directory to /usercode.

Get hands-on with 1400+ tech skills courses.