Deprecated方法增加since描述

This commit is contained in:
Redkale
2023-01-06 12:47:12 +08:00
parent a986becb70
commit 4e5a03bb65
35 changed files with 195 additions and 213 deletions

View File

@@ -22,10 +22,10 @@ import java.lang.annotation.*;
* 值越大,优先级越高
*
* @since Common Annotations 1.2
*
*
* @deprecated replace by org.redkale.annotation.Priority
*/
@Deprecated
@Deprecated(since = "2.8.0")
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Priority {

View File

@@ -12,7 +12,7 @@ import java.lang.annotation.*;
*
* @deprecated replace by org.redkale.annotation.Resource
*/
@Deprecated
@Deprecated(since = "2.8.0")
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Resource {

View File

@@ -35,7 +35,7 @@ import java.lang.annotation.*;
*
* @deprecated replace by org.redkale.persistence.Cacheable
*/
@Deprecated
@Deprecated(since = "2.8.0")
@Target({TYPE})
@Retention(RUNTIME)
public @interface Cacheable {

View File

@@ -15,9 +15,9 @@
***************************************************************************** */
package javax.persistence;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.*;
/**
* Specifies the mapped column for a persistent property or field.
@@ -49,7 +49,7 @@ import java.lang.annotation.*;
*
* @deprecated replace by org.redkale.persistence.Column
*/
@Deprecated
@Deprecated(since = "2.8.0")
@Target({METHOD, FIELD})
@Retention(RUNTIME)
public @interface Column {

View File

@@ -27,7 +27,7 @@ import java.lang.annotation.*;
*
* @deprecated replace by org.redkale.persistence.Entity
*/
@Deprecated
@Deprecated(since = "2.8.0")
@Inherited
@Documented
@Target(TYPE)

View File

@@ -15,9 +15,9 @@
******************************************************************************/
package javax.persistence;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.*;
/**
* Specifies the primary key of an entity.
@@ -49,7 +49,7 @@ import java.lang.annotation.*;
*
* @deprecated replace by org.redkale.persistence.Id
*/
@Deprecated
@Deprecated(since = "2.8.0")
@Target({METHOD, FIELD})
@Retention(RUNTIME)

View File

@@ -41,7 +41,7 @@ import java.lang.annotation.*;
* @deprecated replace by org.redkale.persistence.Index
*
*/
@Deprecated
@Deprecated(since = "2.8.0")
@Target({})
@Retention(RUNTIME)
public @interface Index {

View File

@@ -39,7 +39,7 @@ import java.lang.annotation.*;
*
* @deprecated replace by org.redkale.persistence.Table
*/
@Deprecated
@Deprecated(since = "2.8.0")
@Target(TYPE)
@Retention(RUNTIME)
public @interface Table {

View File

@@ -15,9 +15,9 @@
******************************************************************************/
package javax.persistence;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.*;
/**
* Specifies that the property or field is not persistent. It is used
@@ -39,7 +39,7 @@ import java.lang.annotation.*;
*
* @deprecated replace by org.redkale.persistence.Transient
*/
@Deprecated
@Deprecated(since = "2.8.0")
@Target({METHOD, FIELD})
@Retention(RUNTIME)

View File

@@ -37,7 +37,7 @@ import java.lang.annotation.*;
*
* @deprecated replace by org.redkale.persistence.UniqueConstraint
*/
@Deprecated
@Deprecated(since = "2.8.0")
@Target({})
@Retention(RUNTIME)
public @interface UniqueConstraint {