I have a User class that extends Model and two classes that I want to extend for the User class.
User.java:
@Entity @Table(name = "users") public class User extends Model implements RoleHolder { private static final long serialVersionUID = 1L; @Id public Long id; ...
Driver.java:
public class Driver extends User { ...
Customer.java:
public class Customer extends User { ...
Edit All three objects must be accessible directly. To put it another way, I have users, clients, and drivers; Clients and drivers simply use all the user properties. Therefore, I need to have a valid user object, as well as a client and driver.
I need to get a list of all users (including clients and drivers).
I was not able to figure out how to make this work using ebean in Play. How can i do this?
source share