@@ -66,6 +66,8 @@ public class AnonymousTupleTableGroupProducer implements TableGroupProducer, Map
66
66
private final JavaType <?> javaTypeDescriptor ;
67
67
private final Map <String , ModelPart > modelParts ;
68
68
private final Set <String > compatibleTableExpressions ;
69
+ private final SqlTypedMapping [] sqlTypedMappings ;
70
+ private final int jdbcTypeCount ;
69
71
70
72
public AnonymousTupleTableGroupProducer (
71
73
AnonymousTupleType <?> tupleType ,
@@ -75,6 +77,7 @@ public AnonymousTupleTableGroupProducer(
75
77
this .aliasStem = aliasStem ;
76
78
this .javaTypeDescriptor = tupleType .getExpressibleJavaType ();
77
79
final Set <String > compatibleTableExpressions = new HashSet <>();
80
+ this .sqlTypedMappings = sqlTypedMappings ;
78
81
// The empty table expression is the default for derived model parts
79
82
compatibleTableExpressions .add ( "" );
80
83
@@ -127,6 +130,7 @@ else if ( sqlTypedMappings[selectionIndex] instanceof SelectableMapping selectab
127
130
}
128
131
this .modelParts = modelParts ;
129
132
this .compatibleTableExpressions = compatibleTableExpressions ;
133
+ jdbcTypeCount = selectionIndex ;
130
134
}
131
135
132
136
private ModelPart getModelPart (TableGroup tableGroup ) {
@@ -401,11 +405,16 @@ public <X, Y> int forEachDisassembledJdbcValue(
401
405
402
406
@ Override
403
407
public JdbcMapping getJdbcMapping (int index ) {
404
- throw new UnsupportedOperationException ( "Not yet implemented" );
408
+ return sqlTypedMappings [ index ]. getJdbcMapping ( );
405
409
}
406
410
407
411
@ Override
408
412
public int forEachJdbcType (int offset , IndexedConsumer <JdbcMapping > action ) {
409
413
throw new UnsupportedOperationException ( "Not yet implemented" );
410
414
}
415
+
416
+ @ Override
417
+ public int getJdbcTypeCount () {
418
+ return jdbcTypeCount ;
419
+ }
411
420
}
0 commit comments