add toStrings() to Tuple impls
This commit is contained in:
parent
77231ebfce
commit
dc00b6c0ea
|
@ -7,6 +7,7 @@
|
||||||
package org.hibernate.jpa.spi;
|
package org.hibernate.jpa.spi;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -126,6 +127,11 @@ public class NativeQueryTupleTransformer implements ResultTransformer<Tuple>, Ty
|
||||||
return tuple;
|
return tuple;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Arrays.toString( tuple );
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<TupleElement<?>> getElements() {
|
public List<TupleElement<?>> getElements() {
|
||||||
List<TupleElement<?>> elements = new ArrayList<>( size );
|
List<TupleElement<?>> elements = new ArrayList<>( size );
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
*/
|
*/
|
||||||
package org.hibernate.sql.results.internal;
|
package org.hibernate.sql.results.internal;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import jakarta.persistence.TupleElement;
|
import jakarta.persistence.TupleElement;
|
||||||
|
|
||||||
|
@ -112,4 +113,9 @@ public class TupleImpl implements JpaTuple {
|
||||||
public List<TupleElement<?>> getElements() {
|
public List<TupleElement<?>> getElements() {
|
||||||
return tupleMetadata.getList();
|
return tupleMetadata.getList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return Arrays.toString( row );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue