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

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

There is a newer version: 0.22.J1
Show newest version
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