use of org.jboss.as.quickstarts.tasksrs.model.User in project quickstart by wildfly.
the class TaskResource method getUser.
private User getUser(String username) {
try {
User user = userDao.getForUsername(username);
if (user == null) {
user = new User(username);
userDao.createUser(user);
}
return user;
} catch (Exception e) {
throw new WebApplicationException(e);
}
}
use of org.jboss.as.quickstarts.tasksrs.model.User in project quickstart by wildfly.
the class TaskDaoIT method setUp.
@Before
public void setUp() throws Exception {
detachedUser = new User("jdoe");
detachedUser.setId(1L);
}
Aggregations