Skip to content

Commit 4a238e7

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

File tree

1 file changed

+17
-17
lines changed
  • hibernate-core/src/main/java/org/hibernate/annotations

1 file changed

+17
-17
lines changed

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,28 @@
77
import java.lang.annotation.Retention;
88
import java.lang.annotation.Target;
99

10+
import java.util.List;
11+
import org.hibernate.metamodel.CollectionClassification;
12+
1013
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
1114
import static java.lang.annotation.ElementType.FIELD;
1215
import static java.lang.annotation.ElementType.METHOD;
1316
import static java.lang.annotation.RetentionPolicy.RUNTIME;
1417

15-
/**
16-
* Specifies that an attribute of type {@link java.util.List} is semantically
17-
* a {@linkplain org.hibernate.metamodel.CollectionClassification#BAG bag},
18-
* that is, that the order of the list elements is not significant, and should
19-
* not be persistent.
20-
* <p>
21-
* This annotation is not necessary, and has no effect, unless the configuration
22-
* property {@value org.hibernate.cfg.AvailableSettings#DEFAULT_LIST_SEMANTICS}
23-
* is set to {@link org.hibernate.metamodel.CollectionClassification#LIST}.
24-
* However, its use is still encouraged, since the explicit annotation serves
25-
* as useful documentation.
26-
*
27-
* @apiNote This annotation causes an exception if the attribute is also annotated
28-
* {@link jakarta.persistence.OrderColumn} or {@link ListIndexBase}.
29-
*
30-
* @author Steve Ebersole
31-
*/
18+
/// Specifies that an attribute of type [List] is semantically a
19+
/// [bag][CollectionClassification#BAG], that is, that the order of
20+
/// the list elements is not significant, and should not be persistent.
21+
///
22+
/// This annotation is not necessary, and has no effect, unless the configuration
23+
/// property {@value org.hibernate.cfg.AvailableSettings#DEFAULT_LIST_SEMANTICS}
24+
/// is set to {@link org.hibernate.metamodel.CollectionClassification#LIST}.
25+
/// However, its use is still encouraged, since the explicit annotation serves
26+
/// as useful documentation.
27+
///
28+
/// @apiNote This annotation causes an exception if the attribute is also annotated
29+
/// [jakarta.persistence.OrderColumn] or [ListIndexBase].
30+
///
31+
/// @author Steve Ebersole
3232
@Target({METHOD, FIELD, ANNOTATION_TYPE})
3333
@Retention(RUNTIME)
3434
public @interface Bag {

0 commit comments

Comments
 (0)