facebook

Query Execution

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #231138 Reply

    cecil143
    Member

    Hi,

    I got a doubt…
    try
    {
    System.out.println(“Entered”);
    Session session = SessionManager.currentSession();
    Transaction tx = session.beginTransaction();
    Query query = session.createQuery(“select * from acc_account”);
    for (Iterator it = query.iterate(); it.hasNext();) {
    AccAccount account = (AccAccount) it.next();
    // What Exactly needs to be written to run this query…. ??
    }
    session.close();
    System.out.println(“Closed”);
    }

    Please help me in this..

    Thanks,
    Cecil.C.

    #231143 Reply

    cecil143
    Member

    Sorry. I got the result.

    Thanks,
    Cecil.C.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Query Execution

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