Skip to content

Commit f537fca

Browse files
committed
remove some unused deprecated operations
1 parent 3f92cfb commit f537fca

File tree

2 files changed

+0
-46
lines changed

2 files changed

+0
-46
lines changed

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

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -640,46 +640,10 @@ public java.util.List<CheckConstraint> getCheckConstraints() {
640640
return unmodifiableList( checkConstraints );
641641
}
642642

643-
@Deprecated(since = "6.2")
644-
public String getCheckConstraint() {
645-
if ( checkConstraints.isEmpty() ) {
646-
return null;
647-
}
648-
else if ( checkConstraints.size() > 1 ) {
649-
throw new IllegalStateException( "column has multiple check constraints" );
650-
}
651-
else {
652-
return checkConstraints.get(0).getConstraint();
653-
}
654-
}
655-
656-
@Deprecated(since = "6.2")
657-
public void setCheckConstraint(String constraint) {
658-
if ( constraint != null ) {
659-
if ( !checkConstraints.isEmpty() ) {
660-
throw new IllegalStateException( "column already has a check constraint" );
661-
}
662-
checkConstraints.add( new CheckConstraint( constraint ) );
663-
}
664-
}
665-
666643
public boolean hasCheckConstraint() {
667644
return !checkConstraints.isEmpty();
668645
}
669646

670-
@Deprecated(since = "6.2")
671-
public String checkConstraint() {
672-
if ( checkConstraints.isEmpty() ) {
673-
return null;
674-
}
675-
else if ( checkConstraints.size() > 1 ) {
676-
throw new IllegalStateException( "column has multiple check constraints" );
677-
}
678-
else {
679-
return checkConstraints.get(0).constraintString();
680-
}
681-
}
682-
683647
@Override
684648
public String getTemplate(Dialect dialect, TypeConfiguration typeConfiguration, SqmFunctionRegistry registry) {
685649
return safeInterning(

hibernate-core/src/main/java/org/hibernate/query/sqm/produce/function/ArgumentsValidator.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55
package org.hibernate.query.sqm.produce.function;
66

7-
import org.hibernate.query.spi.QueryEngine;
87
import org.hibernate.query.sqm.tree.SqmTypedNode;
98
import org.hibernate.sql.ast.tree.SqlAstNode;
109
import org.hibernate.type.spi.TypeConfiguration;
@@ -20,15 +19,6 @@
2019
* @see ArgumentTypesValidator
2120
*/
2221
public interface ArgumentsValidator {
23-
/**
24-
* Perform validation that may be done using the {@link SqmTypedNode} tree and assigned Java types.
25-
*
26-
* @deprecated Use {@link #validate(List, String, TypeConfiguration)}
27-
*/
28-
@Deprecated(since = "6.2")
29-
default void validate(List<? extends SqmTypedNode<?>> arguments, String functionName, QueryEngine queryEngine) {
30-
validate( arguments, functionName, queryEngine.getTypeConfiguration() );
31-
}
3222

3323
/**
3424
* Perform validation that may be done using the {@link SqmTypedNode} tree and assigned Java types.

0 commit comments

Comments
 (0)