facebook

Mapping a List to a Table.

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #247206 Reply

    smitha28
    Member

    Hello,

    I have all my data in a Collection (List). I want to copy the data present in the List into a table in the Database. I am using Myeclipse, Struts and Hibernate. Can anyone please help me to resolve this issue.

    Thanks

    #247229

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    I would suggest picking up a Hibernate tutorial to see how it works, or if you are new to Java in general, you might just try using straight JDBC until you get a firm handle on what is going on.

    #247257

    smitha28
    Member

    Hello Riyad,

    Thanks for your reply. I am not very new to Java. I have tried my hands using straight JDBC. I have been using Hibernate also for a while without any problem. Let me describe what I am trying to do. I am trying to check for a particular condition and if the condition satisfies I am trying to copy the rows from the present tables to a new result table. I need a new result table for further review.

    If I try doing it with using simple JDBC and SQL its simple. Since, I will have a ResultSet to operate on and can access each data element using getString() method and we can copy this to a new table. But this is not the case with Hibernate. I tried ScrollableResults() method, but dint work for me. Can you please help me with this?

    #247260

    Riyad Kalla
    Member

    Ahh, see you have already gone beyond my knowledge of Hibernate.

    Try posting your question (the 2nd one with some details) to the hibernate forums here: http://forums.hibernate.org/

    Those guys are pretty sharp and can help you out.

    #247266

    smitha28
    Member

    Thanks for all your help Riyad. I will post the question at the link provided.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Mapping a List to a Table.

You must be logged in to post in the forum log in