package com.HotelServices.model.dao;

import java.io.Serializable;

/**
 * Generic DAO interface. Minden DAO objektumnak muszály implementálnia.
 * @author Sensei
 * @param <T> T egyed tipusa
 * @param <I> I id tipusa
 */

public interface GenericDAO < T , I extends Serializable > {
    
    boolean insert(T entity);
    /**
     * Update an entity.
     * @param entity the entity to be updated
     * @return the persistent entity
     */
        
    boolean deleteById(I entityId);
    /**
     * Deletes the given entity.
     * @param entity the entity to be deleted
     */
}
