Skip to content

Commit

Permalink
Apply @repeatable to Oracle & OXM annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Feb 14, 2024
1 parent ffe27c4 commit e65dd8a
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// dmccann - September 14/2010 - 2.2 - Initial implementation
package org.eclipse.persistence.oxm.annotations;

import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

Expand Down Expand Up @@ -47,6 +48,7 @@
*/
@Target({METHOD, FIELD})
@Retention(RUNTIME)
@Repeatable(XmlJoinNodes.class)
public @interface XmlJoinNode {
String xmlPath();
String referencedXmlPath();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// dmccann - September 14/2010 - 2.2 - Initial implementation
package org.eclipse.persistence.oxm.annotations;

import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

Expand Down Expand Up @@ -52,6 +53,7 @@
*/
@Target({METHOD, FIELD})
@Retention(RUNTIME)
@Repeatable(XmlElementsJoinNodes.class)
public @interface XmlJoinNodes {
/**
* An array of XmlJoinNode annotations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// Matt MacIvor - 2.5 - initial implementation
package org.eclipse.persistence.oxm.annotations;

import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

Expand All @@ -28,6 +29,7 @@
*/
@Target({TYPE})
@Retention(RUNTIME)
@Repeatable(XmlNamedObjectGraphs.class)
public @interface XmlNamedObjectGraph {
/**
* The name of this object graph. Defaults to the name of the class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package org.eclipse.persistence.oxm.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
Expand Down Expand Up @@ -120,6 +121,7 @@
*/
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Repeatable(XmlPaths.class)
public @interface XmlPath {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// Oracle = 2.2 - Initial contribution
package org.eclipse.persistence.oxm.annotations;

import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

Expand All @@ -29,6 +30,7 @@
*/
@Target({METHOD, FIELD, TYPE})
@Retention(RUNTIME)
@Repeatable(XmlProperties.class)
public @interface XmlProperty {
/**
* Property name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import org.eclipse.persistence.mappings.transformers.FieldTransformer;

import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

Expand All @@ -41,6 +42,7 @@
*/
@Target({METHOD, FIELD})
@Retention(RUNTIME)
@Repeatable(XmlWriteTransformers.class)
public @interface XmlWriteTransformer {
/**
* User-defined class that must implement the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import jakarta.persistence.QueryHint;

import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

Expand All @@ -36,6 +37,7 @@
*/
@Target({TYPE})
@Retention(RUNTIME)
@Repeatable(NamedPLSQLStoredFunctionQueries.class)
public @interface NamedPLSQLStoredFunctionQuery {
/**
* Unique name that references this stored function query.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import jakarta.persistence.QueryHint;

import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

Expand All @@ -36,6 +37,7 @@
*/
@Target({TYPE})
@Retention(RUNTIME)
@Repeatable(NamedPLSQLStoredProcedureQueries.class)
public @interface NamedPLSQLStoredProcedureQuery {
/**
* Unique name that references this stored procedure query.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// Oracle - initial API and implementation
package org.eclipse.persistence.platform.database.oracle.annotations;

import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.util.ArrayList;
Expand All @@ -31,6 +32,7 @@
*/
@Target({TYPE})
@Retention(RUNTIME)
@Repeatable(OracleArrays.class)
public @interface OracleArray {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// Oracle - initial API and implementation
package org.eclipse.persistence.platform.database.oracle.annotations;

import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

Expand All @@ -30,6 +31,7 @@
*/
@Target({TYPE})
@Retention(RUNTIME)
@Repeatable(OracleObjects.class)
public @interface OracleObject {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// Oracle - initial API and implementation
package org.eclipse.persistence.platform.database.oracle.annotations;

import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

Expand All @@ -31,6 +32,7 @@
*/
@Target({TYPE})
@Retention(RUNTIME)
@Repeatable(PLSQLRecords.class)
public @interface PLSQLRecord {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// Oracle - initial API and implementation
package org.eclipse.persistence.platform.database.oracle.annotations;

import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.util.ArrayList;
Expand All @@ -32,6 +33,7 @@
*/
@Target({TYPE})
@Retention(RUNTIME)
@Repeatable(PLSQLTables.class)
public @interface PLSQLTable {

/**
Expand Down

0 comments on commit e65dd8a

Please sign in to comment.