I have the following structure:
List -->List_Participant -->Participant
so a list may contain several participants.I try to read this in java:
Here is the reason why you can't have two ResultSet opened from the same Statement
ResultSet javadoc :
A ResultSet object is automatically closed when the Statement object that generated it is closed, re-executed, or used to retrieve the next result from a sequence of multiple results.
So basicly, a Statement can only give you one ResultSet at a time, so you loose the first result when you execute the second query.
Solution :
Statement per ResultSet needed.