Skip to content

Commit f768597

Browse files
committed
HHH-19894 : Use Java 25 for building
1 parent 2b9e84b commit f768597

File tree

2 files changed

+35
-42
lines changed

2 files changed

+35
-42
lines changed

hibernate-core/src/main/java/org/hibernate/annotations/AnyDiscriminator.java

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,32 @@
1414
import static java.lang.annotation.ElementType.METHOD;
1515
import static java.lang.annotation.RetentionPolicy.RUNTIME;
1616

17-
/**
18-
* A simplified way to specify the type of the discriminator in an {@link Any}
19-
* mapping, using the JPA-defined {@link DiscriminatorType}. This annotation
20-
* must be used in combination with {@link jakarta.persistence.Column} to fully
21-
* describe the discriminator column for an {@code @Any} relationship.
22-
* <p>
23-
* {@code @AnyDiscriminator} is quite similar to
24-
* {@link jakarta.persistence.DiscriminatorColumn#discriminatorType()} in
25-
* single-table inheritance mappings, but it describes a discriminator held
26-
* along with the foreign key in the referring side of a discriminated
27-
* relationship.
28-
* <p>
29-
* This annotation may be used in conjunction with {@link JdbcType} or
30-
* {@link JdbcTypeCode} to more precisely specify the type mapping. On the
31-
* other hand, {@link JdbcType} or {@link JdbcTypeCode} may be used without
32-
* {@code @AnyDiscriminator}.
33-
*
34-
* @see Any
35-
* @see AnyDiscriminatorValue
36-
* @see AnyDiscriminatorImplicitValues
37-
*
38-
* @since 6.0
39-
*/
17+
/// A simplified way to specify the type of the discriminator in an [Any]
18+
/// mapping, using the JPA-defined [DiscriminatorType]. This annotation
19+
/// must be used in combination with [jakarta.persistence.Column] to fully
20+
/// describe the discriminator column for an `@Any` relationship.
21+
///
22+
/// `@AnyDiscriminator` is quite similar to
23+
/// [jakarta.persistence.DiscriminatorColumn#discriminatorType()] in
24+
/// single-table inheritance mappings, but it describes a discriminator held
25+
/// along with the foreign key in the referring side of a discriminated
26+
/// relationship.
27+
///
28+
/// This annotation may be used in conjunction with [JdbcType] or
29+
/// [JdbcTypeCode] to more precisely specify the type mapping. On the
30+
/// other hand, [JdbcType] or [JdbcTypeCode] may be used without
31+
/// `@AnyDiscriminator`.
32+
///
33+
/// @see Any
34+
/// @see AnyDiscriminatorValue
35+
/// @see AnyDiscriminatorImplicitValues
36+
///
37+
/// @since 6.0
4038
@Target({METHOD, FIELD, ANNOTATION_TYPE})
4139
@Retention( RUNTIME )
4240
public @interface AnyDiscriminator {
43-
/**
44-
* The type of the discriminator, as a JPA {@link DiscriminatorType}.
45-
* For more precise specification of the type, use {@link JdbcType}
46-
* or {@link JdbcTypeCode}.
47-
*/
41+
/// The type of the discriminator, as a JPA [DiscriminatorType].
42+
/// For more precise specification of the type, use [JdbcType]
43+
/// or [JdbcTypeCode].
4844
DiscriminatorType value() default DiscriminatorType.STRING;
4945
}

hibernate-core/src/main/java/org/hibernate/annotations/Array.java

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,20 @@
1313
import static java.lang.annotation.ElementType.METHOD;
1414
import static java.lang.annotation.RetentionPolicy.RUNTIME;
1515

16-
/**
17-
* Specifies the maximum length of a SQL array type mapped by
18-
* the annotated attribute.
19-
* <p>
20-
* For example:
21-
* <pre>
22-
* {@code @Array(length=100)} // the maximum length of the SQL array
23-
* {@code @Column(length=64)} // the maximum length of the strings in the array
24-
* String[] strings;
25-
* </pre>
26-
*/
16+
/// Specifies the maximum length of a SQL array type mapped by
17+
/// the annotated attribute.
18+
///
19+
/// For example:
20+
///
21+
/// ```java
22+
/// @Array(length=100) // the maximum length of the SQL array
23+
/// @Column(length=64) // the maximum length of the strings in the array
24+
/// String[] strings;
25+
/// ```
2726
@Incubating
2827
@Target({FIELD, METHOD})
2928
@Retention( RUNTIME )
3029
public @interface Array {
31-
/**
32-
* The maximum length of the array.
33-
*/
30+
/// The maximum length of the array.
3431
int length();
3532
}

0 commit comments

Comments
 (0)