Skip to content

Commit 7e9ff01

Browse files
committed
add forRemoval = true to some @deprecated tags
1 parent fc4a9a2 commit 7e9ff01

File tree

11 files changed

+17
-15
lines changed

11 files changed

+17
-15
lines changed

hibernate-core/src/main/java/org/hibernate/engine/spi/Mapping.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
* {@link org.hibernate.metamodel.RuntimeMetamodels},
2424
* or {@link MappingContext} to access such information
2525
*/
26-
@Deprecated(since = "6.0")
26+
@Deprecated(since = "6.0", forRemoval = true)
2727
public interface Mapping extends MappingContext {
2828
}

hibernate-core/src/main/java/org/hibernate/mapping/Collection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ public void setFetchMode(FetchMode fetchMode) {
381381
/**
382382
* @deprecated use {@link #validate(MappingContext)}
383383
*/
384-
@Deprecated(since = "7.0")
384+
@Deprecated(since = "7.0", forRemoval = true)
385385
public void validate(Mapping mapping) throws MappingException {
386386
validate( (MappingContext) mapping);
387387
}

hibernate-core/src/main/java/org/hibernate/mapping/Column.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public boolean equals(Column column) {
284284
/**
285285
* @deprecated use {@link #getSqlTypeCode(MappingContext)}
286286
*/
287-
@Deprecated(since = "7.0")
287+
@Deprecated(since = "7.0", forRemoval = true)
288288
public int getSqlTypeCode(Mapping mapping) throws MappingException{
289289
return getSqlTypeCode((MappingContext) mapping);
290290
}
@@ -425,7 +425,7 @@ public String getSqlType(Metadata mapping) {
425425
/**
426426
* @deprecated use {@link #getSqlType(Metadata)}
427427
*/
428-
@Deprecated(since = "6.2")
428+
@Deprecated(since = "6.2", forRemoval = true)
429429
public String getSqlType(TypeConfiguration typeConfiguration, Dialect dialect, Mapping mapping) {
430430
return getSqlTypeName( typeConfiguration, dialect, mapping );
431431
}
@@ -463,7 +463,7 @@ public int getDecimalDigits() {
463463
/**
464464
* @deprecated use {@link #getColumnSize(Dialect, MappingContext)}
465465
*/
466-
@Deprecated(since = "7.0")
466+
@Deprecated(since = "7.0", forRemoval = true)
467467
public Size getColumnSize(Dialect dialect, Mapping mapping) {
468468
return getColumnSize(dialect, (MappingContext) mapping);
469469
}

hibernate-core/src/main/java/org/hibernate/mapping/IdentifierCollection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ void createPrimaryKey() {
6666
// create an index on the key columns??
6767
}
6868

69+
@Deprecated(forRemoval = true)
6970
public void validate(Mapping mapping) throws MappingException {
7071
validate( (MappingContext) mapping);
7172
}

hibernate-core/src/main/java/org/hibernate/mapping/IndexedCollection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void createPrimaryKey() {
9696
// }
9797
}
9898

99-
@Deprecated
99+
@Deprecated(forRemoval = true)
100100
public void validate(Mapping mapping) throws MappingException {
101101
validate( (MappingContext) mapping);
102102
}

hibernate-core/src/main/java/org/hibernate/mapping/Property.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public void setMetaAttributes(Map<String, MetaAttribute> metas) {
279279
/**
280280
* @deprecated use {@link #isValid(MappingContext)}
281281
*/
282-
@Deprecated(since = "7.0")
282+
@Deprecated(since = "7.0", forRemoval = true)
283283
public boolean isValid(Mapping mapping) throws MappingException {
284284
return isValid( (MappingContext) mapping);
285285
}

hibernate-core/src/main/java/org/hibernate/mapping/Set.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public Set copy() {
4848
return new Set( this );
4949
}
5050

51+
@Deprecated(forRemoval = true)
5152
public void validate(Mapping mapping) throws MappingException {
5253
validate( (MappingContext) mapping );
5354
}

hibernate-core/src/main/java/org/hibernate/mapping/Value.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ default List<Column> getConstraintColumns() {
7575
/**
7676
* @deprecated use {@link #getSelectableType(MappingContext, int)}
7777
*/
78-
@Deprecated(since = "7.0")
78+
@Deprecated(since = "7.0", forRemoval = true)
7979
default JdbcMapping getSelectableType(Mapping factory, int index) throws MappingException {
8080
return getSelectableType( (MappingContext) factory, index );
8181
}
@@ -146,7 +146,7 @@ private Type getIdType(EntityType entityType) {
146146
/**
147147
* @deprecated use {@link #isValid(MappingContext)}
148148
*/
149-
@Deprecated(since = "7.0")
149+
@Deprecated(since = "7.0", forRemoval = true)
150150
default boolean isValid(Mapping mapping) throws MappingException{
151151
return isValid( (MappingContext) mapping );
152152
}

hibernate-core/src/main/java/org/hibernate/type/EntityType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ public boolean isLogicalOneToOne() {
575575
* @return The identifier type
576576
* @deprecated use {@link #getIdentifierType(MappingContext)}
577577
*/
578-
@Deprecated(since = "7.0")
578+
@Deprecated(since = "7.0", forRemoval = true)
579579
Type getIdentifierType(final Mapping factory) {
580580
return getIdentifierType( (MappingContext) factory );
581581
}
@@ -625,7 +625,7 @@ Type getIdentifierType(final SharedSessionContractImplementor session) {
625625
* or unique key property name.
626626
* @deprecated use {@link #getIdentifierOrUniqueKeyType(MappingContext)}
627627
*/
628-
@Deprecated(since = "7.0")
628+
@Deprecated(since = "7.0", forRemoval = true)
629629
public final Type getIdentifierOrUniqueKeyType(Mapping factory) throws MappingException {
630630
return getIdentifierOrUniqueKeyType( (MappingContext) factory );
631631
}

hibernate-core/src/main/java/org/hibernate/type/MetaType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public String toXMLString(Object value, SessionFactoryImplementor factory) throw
123123
/**
124124
* @deprecated use {@link #fromXMLString(String, MappingContext)}
125125
*/
126-
@Deprecated(since = "7.0")
126+
@Deprecated(since = "7.0", forRemoval = true)
127127
public Object fromXMLString(String xml, Mapping factory) throws HibernateException {
128128
return fromXMLString( xml, (MappingContext) factory );
129129
}

hibernate-core/src/main/java/org/hibernate/type/Type.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public interface Type extends Serializable {
103103
* @throws MappingException Generally indicates an issue accessing the passed mapping object.
104104
* @deprecated use {@link #getColumnSpan(MappingContext)}
105105
*/
106-
@Deprecated(since = "7.0")
106+
@Deprecated(since = "7.0", forRemoval = true)
107107
default int getColumnSpan(Mapping mapping) throws MappingException{
108108
return getColumnSpan( (MappingContext) mapping);
109109
}
@@ -134,7 +134,7 @@ default int getColumnSpan(Mapping mapping) throws MappingException{
134134
* @throws MappingException Generally indicates an issue accessing the passed mapping object.
135135
* @deprecated use {@link #getSqlTypeCodes(MappingContext)}
136136
*/
137-
@Deprecated(since = "7.0")
137+
@Deprecated(since = "7.0", forRemoval = true)
138138
default int[] getSqlTypeCodes(Mapping mapping) throws MappingException{
139139
return getSqlTypeCodes((MappingContext) mapping);
140140
}
@@ -544,7 +544,7 @@ String toLoggableString(@Nullable Object value, SessionFactoryImplementor factor
544544
* @return array indicating column nullness for a value instance
545545
* @deprecated use {@link #toColumnNullness(Object, MappingContext)}
546546
*/
547-
@Deprecated(since = "7.0")
547+
@Deprecated(since = "7.0", forRemoval = true)
548548
default boolean[] toColumnNullness(@Nullable Object value, Mapping mapping){
549549
return toColumnNullness( value,(MappingContext) mapping);
550550
}

0 commit comments

Comments
 (0)