Closing this
thread now, first because it is in the wrong forum. Your first question was about JSP and we have a JSP forum for that.
Now you are asking a Hibernate ORM question, and we have an ORM forum for those questions. On top of that you started a brand new thread with the exact same question, so this is now a duplicate thread.
Please read the link in my signature about posting at JavaRanch.
Thanks and good luck
Mark