

package de.kaiserpfalzedv.commons.api.data.query;

import java.io.Serializable;

import javax.persistence.TypedQuery;
import javax.validation.constraints.NotNull;

import de.kaiserpfalzedv.commons.api.data.base.Identifiable;

/**
 * @author klenkes {@literal <rlichti@kaiserpfalz-edv.de>}
 * @version 1.0.0
 * @since 2017-11-22
 */
public interface QueryParameter<T extends Identifiable> extends Serializable {
    String getName();

    <P extends Identifiable> TypedQuery<P> setParameterToQuery(@NotNull TypedQuery<P> query);
}
