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

    Default could not resolve property

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

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

    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, 02: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, 07:06 PM
  3. Replies: 1
    Last Post: 10-23-2010, 03:42 PM
  4. Replies: 0
    Last Post: 06-25-2009, 06:28 AM
  5. Yet another Cannot Resolve Symbol
    By Gabinka in forum New To Java
    Replies: 5
    Last Post: 03-27-2009, 11: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