File tree Expand file tree Collapse file tree 2 files changed +0
-46
lines changed
hibernate-core/src/main/java/org/hibernate
query/sqm/produce/function Expand file tree Collapse file tree 2 files changed +0
-46
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change 44 */
55package org .hibernate .query .sqm .produce .function ;
66
7- import org .hibernate .query .spi .QueryEngine ;
87import org .hibernate .query .sqm .tree .SqmTypedNode ;
98import org .hibernate .sql .ast .tree .SqlAstNode ;
109import org .hibernate .type .spi .TypeConfiguration ;
2019 * @see ArgumentTypesValidator
2120 */
2221public 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.
You can’t perform that action at this time.
0 commit comments