I see StructDescriptor and ArrayDescriptor have been deprecated.

Replace for StructDescriptor

Use factory method Connection.createStruct to create an instance of java.sql.Struct directly.

Replace for ArrayDescriptor

Use factory method OracleConnection.createOracleArray to create an instance of java.sql.Array directly.

StructDescriptor javadoc ArrayDescriptor javadoc

That why I make this PR. Is it necessary to update document? If it is necessary, please update kotlin section.

Comment From: snicoll

Good catch @ngocnhan-tran1996. I've moved the code snippet to an actual class in case this happens again in the future.

Comment From: ngocnhan-tran1996

@snicoll

Thanks for your review.