Package eja.ejb.entities

Examples of eja.ejb.entities.Hotel


    public Collection<Category> getAllCategories() {
        return this._categoryDao.getAllCategories();
    }

    public String edit() {
        this._hotel = (this.id != 0) ? this._hotelDao.getHotelById(this.id) : new Hotel();
        this._hotel.setName(this.name);
        this._hotel.setEmail(this.email);
        this._hotel.setPhone(this.phone);
        this._hotel.setComRegNo(this.comRegNo);
        this._hotel.setVatNo(this.vatNo);
View Full Code Here


public class HotelConverter implements Converter {

    @Override
    public Object getAsObject(FacesContext context, UIComponent component, String value) {
        int id = Integer.parseInt(value);
        Hotel hotel = new Hotel();
        hotel.setId(id);

        return hotel;
    }
View Full Code Here

        return hotel;
    }

    @Override
    public String getAsString(FacesContext context, UIComponent component, Object value) {
        Hotel hotel = (Hotel) value;
        return hotel.getId().toString();
    }
View Full Code Here

TOP

Related Classes of eja.ejb.entities.Hotel

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.