I'm developing a system using Spring Security, JPA/Hibernate, Postgres JSF and Primefaces.
There are three classes that extending user class, pilot, mechanic and staff. But if I extend it won't be neither class or table user to authenticate.
I put a OneToOne relationship between classes.
Somebody has some diferent idea to do this?