AbstractUser pretty much bars applications from using their own ID generator, as it extends LemonEntity > AbstractPersistable, with the latter defining the ID member and JPA annotations. It would be much preferable to provide an interface VS AbstractUser or otherwise not include the id member definition within it or it's superclasses. In short, users should be able to:
// OR: implements LemonUser<Integer>
public class User extends AbstractUser<Integer> {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
}
AbstractUserpretty much bars applications from using their own ID generator, as it extendsLemonEntity>AbstractPersistable, with the latter defining the ID member and JPA annotations. It would be much preferable to provide an interface VSAbstractUseror otherwise not include theidmember definition within it or it's superclasses. In short, users should be able to: