Hi,
I have a procedure that returns values of a TYPE (created via CREATE TYPE).
I'm having trouble mapping the return to a Java type.
I'm trying to call it like anyother procedure:
Query qry = null;
List<Struct> results= new ArrayList<Struct>();
Object[] resultado = null;
String sql = "select procedure(parameters);";
qry = em.createNativeQuery(sql);
results= qry.getResultList();
I'm getting a no dialect mapping exception.
Also, I've tried to map a Entity to the type. But when I try to get the
result I got an error on the fields mapping.
Regards.
--
View this message in context:
http://postgresql.1045698.n5.nabble.com/CREATE-TYPE-and-Java-Mapping-tp3347859p3347859.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
✖
By continuing to browse this website, you agree to the use of cookies. Go to Privacy Policy.