Adding to the Spring application permissions for simple classes, and for the enum-classes that implement the interface IAccessRole.
An example of the work can be seen in the test class CoreAccessRole, CustomAccessRole and TestEntity
To work just connect the module to implement IAccessRole interface and add an annotation @AccessRole or its derivatives.
An example of the work can be seen in the test class CoreAccessRole, CustomAccessRole
To work just connect the module and configure application Hibernate EntityManager. An example of the work can be seen in the test class TestEntity.
Roles are stored in the database in one line with the division of roles names comma to the same column and in the form of separate lines using annotations @ElementCollection
In the plans:
-
Add the preservation of the entity into a separate database table to be able to bind through the field "id" records
-
Add examples as individual modules