io.github.ninobomba.commons.data.services.ICreateService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of t4m-commons Show documentation
Show all versions of t4m-commons Show documentation
Tools 4 Monkeys - Java Commons
The newest version!
package io.github.ninobomba.commons.data.services;
/**
* This interface represents a service interface for creating entities of type E.
*
* @param the type of entity to be created
*/
public interface ICreateService < E > {
/**
* Creates a new entity and returns its ID.
*
* @param entity the entity to be created
* @return the ID of the newly created entity
*/
long create( E entity );
}