I am trying to insert data into a table having columns (NAME, VALUE) with
Query query = em.createQuery(\"INSERT INTO TestDataEntity (NAME,
I solved the issue.
According to this,
There is no INSERT statement in JPA.
But I could solve the issue with native query: I have mistakenly put a redundant ; at the end of the query, so the issue solved by removing it.