0
Is there any way I can set that certain table entry in the database is not excluded?
For example, I created a table usuários
on the bench through the class User
using the annotations of Hibernate and JPA and wish that Admin User could not be deleted.
By directly placing the register of a main administrator in the bank, you could not provide the exclusion option, checking in the bank and returning an error if you are the Administrator. I don’t know if there’s anything proper to Hibernate/JPA for this.
– Gustavo Cinque