In Oracle database I have defined type:
create or replace TYPE person_type
AS OBJECT (id NUMBER(10), name VARCHAR2(50), age NUMBER);
and a stored procedure
create or replace PROCEDURE add_person (in_person IN person_type)
AS
BEGIN
INSERT into person (id, name, age) VALUES(in_person.id, in_person.name, person.age);
END;
I'm using Spring Boot with Hibernate and I want to call the procedure with some equivalent java bean as input parameter. I have seen many examples but they were using only basic types, not composed objects. There are also some examples with Table annotations, but I'm not guaranteed to have such table in database, I have only guaranteed the stored procedure type.