Package se.plushogskolan.jetbroker.plane.domain

Examples of se.plushogskolan.jetbroker.plane.domain.PlaneType


    EditPlaneTypeBean bean = new EditPlaneTypeBean();
    boolean isNew = id <= 0;

    if (isNew) {
      PlaneType planeType = new PlaneType();
      bean.setPlaneType(planeType);
    } else {
      PlaneType planeType = getPlaneService().getPlaneType(id);
      bean.setPlaneType(planeType);
    }

    ModelAndView mav = new ModelAndView("editPlaneType");
    mav.addObject("editPlaneTypeBean", bean);
View Full Code Here


      ModelAndView mav = new ModelAndView("editPlaneType");
      mav.addObject("editPlaneTypeBean", bean);
      return mav;
    }

    PlaneType planeType = bean.getPlaneType();

    if (planeType.getId() > 0) {
      /**
       * Copy the updated values to a new PlaneType object taken directly
       * from the database
       */
      PlaneType dbPlaneType = getPlaneService().getPlaneType(bean.getPlaneType().getId());
      copyPlaneTypeValues(planeType, dbPlaneType);
      getPlaneService().updatePlaneType(dbPlaneType);
    } else {
      getPlaneService().createPlaneType(planeType);
    }
View Full Code Here

TOP

Related Classes of se.plushogskolan.jetbroker.plane.domain.PlaneType

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.