mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Expose order by columns omitted from select.
This commit is contained in:
@@ -3,10 +3,7 @@ package com.avaje.tests.model.basic;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.ManyToMany;
|
||||
import javax.persistence.*;
|
||||
|
||||
@Entity
|
||||
public class MUser {
|
||||
@@ -21,6 +18,9 @@ public class MUser {
|
||||
@ManyToMany(mappedBy="users",cascade=CascadeType.ALL)
|
||||
List<MRole> roles;
|
||||
|
||||
@ManyToOne
|
||||
private MUserType userType;
|
||||
|
||||
public MUser() {
|
||||
|
||||
}
|
||||
@@ -59,5 +59,13 @@ public class MUser {
|
||||
}
|
||||
roles.add(role);
|
||||
}
|
||||
|
||||
public MUserType getUserType() {
|
||||
return userType;
|
||||
}
|
||||
|
||||
public void setUserType(MUserType userType) {
|
||||
this.userType = userType;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user