0
(click on this box to dismiss)
How to return Custom Type from Java stored procedure?
Hi,
I have a generic method
public static List<Students> SelectStudents()
{
List<Students> students = new List<Students>(); // List for save students objects
//some logic to return
return students;
}I want to know how can I return the type List<Student> using a Function?
1
Answer
0
In Java you can serialize any object (List<Student>) to string and return this string to CUBRID. Search for "java serialize object to string". StackOverflow provides a nice example. If you find a better solution, post it below.
asked last year
viewed 693 times