ADD: missing annotations

This commit is contained in:
Roland Praml
2022-01-28 08:00:13 +01:00
parent 4493f1b266
commit 2f2924935e
3 changed files with 53 additions and 0 deletions
@@ -0,0 +1,21 @@
package io.ebean.annotation;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Annotation to define a list of interface for which this entity is target for.
* @author Roland Praml, FOCONIS AG
*/
@Documented
@Target({ FIELD, TYPE })
@Retention(RUNTIME)
public @interface EntityImplements {
Class<?>[] value();
}
@@ -0,0 +1,24 @@
package io.ebean.annotation;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Annotation to define that an entity overrides the parent entity.
* @author Roland Praml, FOCONIS AG
*/
@Documented
@Target({ FIELD, TYPE })
@Retention(RUNTIME)
public @interface EntityOverride {
/**
* The priority of the statement. Lower priority wins.
*/
int priority() default 0;
}
@@ -0,0 +1,8 @@
<HTML>
<HEAD>
<TITLE>Ebean Annotations</TITLE>
</HEAD>
<Body BGCOLOR="#ffffff">
This classes will be moved later to the ebean-annotation module.
</Body>
</HTML>