File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,11 @@ protected Object[] getArray(
190190 }
191191
192192 protected <X > X getArray (BasicExtractor <X > extractor , java .sql .Array array , WrapperOptions options ) throws SQLException {
193- if ( array != null && getElementJdbcType () instanceof AggregateJdbcType ) {
194- final AggregateJdbcType aggregateJdbcType = (AggregateJdbcType ) getElementJdbcType ();
193+ final JdbcType jdbcType = getElementJdbcType ();
194+ if (array != null
195+ && jdbcType instanceof AggregateJdbcType
196+ && ((AggregateJdbcType ) jdbcType ).getEmbeddableMappingType () != null ) {
197+ final AggregateJdbcType aggregateJdbcType = (AggregateJdbcType ) jdbcType ;
195198 final EmbeddableMappingType embeddableMappingType = aggregateJdbcType .getEmbeddableMappingType ();
196199 final Object rawArray = array .getArray ();
197200 final Object [] domainObjects = new Object [Array .getLength ( rawArray )];
You can’t perform that action at this time.
0 commit comments