Bonita 7 Mysql 5.5 save external Data base hibernate JPA

I need to save the whole form in an external Data Base(MySql5.5) Bonita 7.2, how can I dot it in a better way?

Hello every body!!! I wish some one could help me, I would thank any help.

Now I have make a Groovy script, and I use a jdbc mysql conector, but I have to map field by field to the query that makes the insert, this is a lite bit old school method, it is really tedious and archaic.
I Would like to use Hibernate or JPA as ORM, to make a save or persist of the object, because I have to do it in many tasks, to save diferents Web forms, for an external Application.