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

com.kenshoo.pl.entity.annotation.audit.Audited Maven / Gradle / Ivy

Go to download

A Java persistence layer based on JOOQ for high performance and business flow support.

There is a newer version: 0.1.121-jooq-3.16.3
Show newest version
package com.kenshoo.pl.entity.annotation.audit;

import com.kenshoo.pl.entity.audit.AuditRecord;
import com.kenshoo.pl.entity.spi.audit.AlwaysAuditedFieldsProvider;
import com.kenshoo.pl.entity.spi.audit.AlwaysAuditedFieldsProvider.EmptyAlwaysAuditedFieldsProvider;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Whenever an entity or field has this annotation, it indicates that any changes to the entity / field
 * will be published (by the publisher belonging to the PersistenceLayer instance)
 */
@Target({ElementType.TYPE, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Audited {

    /**
     * @return the provider class of additional fields that should always be added to {@link AuditRecord}s of the annotated entity type,
     * with their current values.
* This attribute is valid for entity-level annotations only, and will be ignored if appearing on fields. * @see AlwaysAuditedFieldsProvider */ Class alwaysAuditedFieldsProvider() default EmptyAlwaysAuditedFieldsProvider.class; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy