org.omnifaces.persistence.model.NonDeletable 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 static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import org.omnifaces.persistence.exception.NonDeletableEntityException;
import org.omnifaces.persistence.service.BaseEntityService;
/**
*
* When put on a {@link BaseEntity}, then any attempt to {@link BaseEntityService#delete(BaseEntity)} will throw
* {@link NonDeletableEntityException}.
*/
@Target(TYPE)
@Retention(RUNTIME)
public @interface NonDeletable {
//
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy