Package org.sample.booking.models

Examples of org.sample.booking.models.User


  @Action
  @Route("/hotels/{id}/booking")
  public Response processConfirmBooking(String confirm, String id, String revise, @Mapped @Valid Booking booking) {
    Hotel hotel = Hotel.findById(id);
    User user = User.find(login.getUserName(), null);
    booking.hotel = hotel;
    booking.user = user;

//      validation.valid(booking);
View Full Code Here


  @Action
  @Route("/login")
  public Response login(@Mapped User u) {
    System.out.println("Want login " + u.username + " " + u.password);
    User user = User.find(u.username, u.password);
    if (user != null) {
      login.setUserName(user.username);
      flash.setSuccess("Welcome, " + user.name);
      return Application_.index();
    }
View Full Code Here

TOP

Related Classes of org.sample.booking.models.User

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.