org.omnifaces.persistence.exception.BaseEntityException 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.exception;
import javax.ejb.ApplicationException;
import javax.persistence.PersistenceException;
import org.omnifaces.persistence.model.BaseEntity;
@ApplicationException(rollback = true)
public abstract class BaseEntityException extends PersistenceException {
private static final long serialVersionUID = 1L;
private BaseEntity> entity;
public BaseEntityException(BaseEntity> entity, String message) {
super(message);
this.entity = entity;
}
@SuppressWarnings("unchecked")
public > E getEntity() {
return (E) entity;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy