Registering Entity for Administration
To be able to view and edit entity data from the user interface, you need to create an administration for it.
It is as easy as creating a class extended from AdministrationConfiguration, and specifying the class name of your managed entity:
import org.lightadmin.api.config.AdministrationConfiguration; import my.project.model.Hotel; public class HotelAdministration extends AdministrationConfiguration { }
As a result, it will be possible to view your entity data in a sortable table with pagination, as well as perform CRUD operations (see the screenshots below).
The following sections of this tutorial describe how to customize fields display, add filtering and categorization (scopes).