I am using JPA in Java Application. I am try to update my data in mysql, but i got this Exception

```
Exception in thread "main" java.lang.IllegalArgumentException: org.hibernate.QueryException: could not resolve property: last_updated_mdm_id of: com.avanir.mdm.app.model.hcp.MdmId [UPDATE com.avanir.mdm.app.model.hcp.MdmId e SET e.last_updated_mdm_id = :id where e.last_updated_mdm_id = :nextid]

```

How to fix this problem ? Thanks.

My code 

```
 public static void updateMdmId(String lastUpdatedMdmId) throws IOException {

        EntityManager em = Persistence.createEntityManagerFactory("abc").createEntityManager();
        String id = Integer.toString(Integer.parseInt(lastUpdatedMdmId) +1 );
        em.getTransaction().begin();
        Query query = em.createQuery("UPDATE MdmId e SET e.last_updated_mdm_id = :id" +
                " where e.last_updated_mdm_id = :nextid");
        query.setParameter("id", id);
        query.setParameter("nextid", lastUpdatedMdmId);
        int rowsUpdated = query.executeUpdate();
        System.out.println("entities Updated: " + rowsUpdated);
        em.getTransaction().commit();
        em.close();
    }

```

desc table 

```
mysql> desc mdm_id;
+---------------------+-------------+------+-----+---------+-------+
| Field               | Type        | Null | Key | Default | Extra |
+---------------------+-------------+------+-----+---------+-------+
| last_updated_mdm_id | varchar(20) | NO   | PRI | NULL    |       |
+---------------------+-------------+------+-----+---------+-------+
1 row in set (0.64 sec)

```