mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
ADD: missing annotations
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user