use of com.springone.myrestaurants.domain.UserAccount in project spring-data-document-examples by spring-projects.
the class JpaUserAccountDao method merge.
@Transactional
public UserAccount merge(UserAccount userAccount) {
UserAccount merged = this.entityManager.merge(userAccount);
this.entityManager.flush();
return merged;
}
use of com.springone.myrestaurants.domain.UserAccount in project spring-data-document-examples by spring-projects.
the class SignUpController method updateForm2.
@RequestMapping(value = "/{username}", params = "form2", method = RequestMethod.GET)
public String updateForm2(@PathVariable("username") String userName, Model model) {
UserAccount userAccount = userAccountDao.findByName(userName);
model.addAttribute("userAccount", userAccount);
addDateTimeFormatPatterns(model);
return "useraccounts/update";
}
Aggregations