Hi Jeanne,
thanks very much for your answer.
Yes I added some println statements, and when I got a list (the ArrayList) of 2 objects, it print 2 times, so it's being called twice. But only one is being saved effectively(only the first one). That's very strange to me.
Oh nice, I really like suggestions from the experts
I never tried using this executeBatch() method, is it the same? Instead of executeUpdate I put executeBatch() ?
I know in lots of applications they use Hibernate (and I'd really wanted to use...) but do you know any good "architecture" of this DAO thing. Something like creating a Singleton of Connection, etc. Something to optimize the performance.
Thank you once again.