User-defined types declared in a package cannot be used outside of this package. Please define globally the type used with the OracleTable class:
create or replace type test002_type as object(
-- list here the test002 columns
c1 number,
c2 number
);
/
create or replace type test002_table is table of test002_type;
/
JIC: ROWTYPE is a PL/SQL construct and not recognized in the SQL create type statement.