Results 1 to 2 of 2
  1. #1
    anouar2002 is offline Member
    Join Date
    Apr 2012
    Posts
    13
    Rep Power
    0

    Default could not resolve property

    Hello,
    i can't make a 'WHERE' in my query,,there is the error :
    org.hibernate.QueryException: could not resolve property: ETAT of: tn.com.isamm.model.Voiture [from tn.com.isamm.model.Voiture v where v.ETAT=Disponible]
    Java Code:
    public List<Voiture> listVoiture() {
    		// TODO Auto-generated method stub
    		Session session=HibernateUtil.getSessionFactory().getCurrentSession();
    		session.beginTransaction();
    		List list2=session.createQuery("from Voiture v  where v.ETAT=Disponible").list();
    		session.getTransaction().commit();
    		
    		return list2;
    	}
    what shall i do ?

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    758
    Rep Power
    8

    Default Re: could not resolve property

    Have you check that the ETAT property is really defined in your domain object?

Similar Threads

  1. how to resolve last funtion
    By spinter in forum Advanced Java
    Replies: 2
    Last Post: 10-28-2011, 01:35 AM
  2. any one help me to resolve this error
    By akiravelmont in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-11-2011, 06:06 PM
  3. Replies: 1
    Last Post: 10-23-2010, 02:42 PM
  4. Replies: 0
    Last Post: 06-25-2009, 05:28 AM
  5. Yet another Cannot Resolve Symbol
    By Gabinka in forum New To Java
    Replies: 5
    Last Post: 03-27-2009, 10:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •