Hy, does somebody know how to pass a in parameter of type record in oracle to store procedure from java

this is the type in the oracle db

type RPrueba is record (
p1 varchar(2)
, p2 varchar(2)

and this is the store procedure in oracle

procedure pruebaRecord( rec IN RPrueba);
thnk you very much