Skip to content

Commit 48068e0

Browse files
sebersoleSanne
authored andcommitted
HHH-14857 Deprecations in preparation for 6
1 parent 34a9fa2 commit 48068e0

File tree

70 files changed

+594
-285
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+594
-285
lines changed

documentation/src/test/java/org/hibernate/userguide/collections/MapKeyTypeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void testLifecycle() {
6969
try {
7070
Map settings = buildSettings();
7171
settings.put(
72-
org.hibernate.jpa.AvailableSettings.LOADED_CLASSES,
72+
org.hibernate.cfg.AvailableSettings.LOADED_CLASSES,
7373
Collections.singletonList(
7474
Person.class
7575
)

documentation/src/test/java/org/hibernate/userguide/envers/EntityTypeChangeAuditDefaultTrackingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void testLifecycle() {
5959
try {
6060
Map settings = buildSettings();
6161
settings.put(
62-
org.hibernate.jpa.AvailableSettings.LOADED_CLASSES,
62+
AvailableSettings.LOADED_CLASSES,
6363
Arrays.asList(
6464
ApplicationCustomer.class,
6565
CustomTrackingRevisionEntity.class

documentation/src/test/java/org/hibernate/userguide/envers/EntityTypeChangeAuditTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public void test() {
8383
try {
8484
Map settings = buildSettings();
8585
settings.put(
86-
org.hibernate.jpa.AvailableSettings.LOADED_CLASSES,
86+
AvailableSettings.LOADED_CLASSES,
8787
Arrays.asList(
8888
ApplicationCustomer.class,
8989
CustomTrackingRevisionEntity.class

documentation/src/test/java/org/hibernate/userguide/envers/EntityTypeChangeAuditTrackingRevisionListenerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void testLifecycle() {
7575
try {
7676
Map settings = buildSettings();
7777
settings.put(
78-
org.hibernate.jpa.AvailableSettings.LOADED_CLASSES,
78+
AvailableSettings.LOADED_CLASSES,
7979
Arrays.asList(
8080
ApplicationCustomer.class,
8181
CustomTrackingRevisionEntity.class,

documentation/src/test/java/org/hibernate/userguide/envers/ValidityStrategyAuditTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import org.hibernate.envers.Audited;
2222
import org.hibernate.envers.configuration.EnversSettings;
2323
import org.hibernate.envers.strategy.ValidityAuditStrategy;
24-
import org.hibernate.jpa.AvailableSettings;
2524
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
2625

2726
import org.junit.Test;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
*
2323
* @author Emmanuel Bernard
2424
* @author Steve Ebersole
25+
*
26+
* @deprecated To be removed in 6.0
2527
*/
28+
@Deprecated
2629
@java.lang.annotation.Target( { PACKAGE, TYPE, METHOD, FIELD } )
2730
@Retention( RUNTIME )
2831
@Repeatable(AnyMetaDefs.class)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717
*
1818
* @author Emmanuel Bernard
1919
* @author Steve Ebersole
20+
*
21+
* @deprecated To be removed in 6.0
2022
*/
2123
@java.lang.annotation.Target( { PACKAGE, TYPE } )
2224
@Retention( RUNTIME )
25+
@Deprecated
2326
public @interface AnyMetaDefs {
2427
/**
2528
* The collective set of any meta-defs.

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@
2626
public @interface CollectionId {
2727
/**
2828
* Collection id column(s).
29+
*
30+
* @deprecated Only basic (single column) collection-ids are supported.
31+
* Use {@link #column} instead
2932
*/
30-
Column[] columns();
33+
@Deprecated
34+
Column[] columns() default {};
35+
36+
Column column() default @Column;
3137

3238
/**
3339
* id type, type.type() must be set.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@
2020
* @see org.hibernate.usertype.UserCollectionType
2121
*
2222
* @author Steve Ebersole
23+
*
24+
* @deprecated Custom handling for "collection types" will be handled differently in 6.0
2325
*/
2426
@java.lang.annotation.Target({FIELD, METHOD})
2527
@Retention(RUNTIME)
28+
@Deprecated
2629
public @interface CollectionType {
2730
/**
2831
* Names the type.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616
* Allows defining the type of the key of a persistent map.
1717
*
1818
* @author Steve Ebersole
19+
*
20+
* @deprecated 6.0 will introduce a new type-safe {@code CustomType} annotation
1921
*/
2022
@java.lang.annotation.Target({METHOD, FIELD})
2123
@Retention(RUNTIME)
24+
@Deprecated
2225
public @interface MapKeyType {
2326
/**
2427
* The map key type definition.

0 commit comments

Comments
 (0)