All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.omnifaces.persistence.model.Identifiable Maven / Gradle / Ivy

There is a newer version: 0.22.J1
Show newest version
package org.omnifaces.persistence.model;

import java.io.Serializable;

/**
 * 

* Base interface for something identifiable. * * @param The generic ID type, usually {@link Long}. * @author Bauke Scholtz */ public interface Identifiable & Serializable> { /** * The string representing the field name "id". */ String ID = "id"; /** * Returns the ID. * @return The ID. */ I getId(); /** * Sets the ID. * @param id The ID. */ void setId(I id); }