org.omnifaces.persistence.model.Identifiable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of omnipersistence Show documentation
Show all versions of omnipersistence Show documentation
Utilities for JPA, JDBC and DataSources
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);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy