facebook

session.find() problem

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

    pbr.bhaskar
    Member

    Hi,
    I want to query a table using session.find method, but it gives an error session.find method is not available .Is this hibernate version problem? Iam using Hibernate3.1.

    Thanks & Regards
    Bhaskar

    #258082 Reply

    Haris Peco
    Member

    Bhaskar,

    Session#find is deprecated in version 3.1 – you can use createQuery or org.hibernate.classic.Session

    Regards
    Peco

    #258163 Reply

    pbr.bhaskar
    Member

    Hi Peco,

    Thanks for ur reply.

    I solved the problem using createQuery…

    Regards
    Bhaskar

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: session.find() problem

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