문제

I am playframework application developer. I am using createNativeQuery method in jpa to extracting values from tables through select query. I need to use update query. What i have to do and what will be the return type of that method. Please anyone help me. Thanks in advance.. if i use like this it showing error..

Query query=JPA.em().createNativeQuery("update truck set flag='YES' where shipment_upc=:EAN_code"); query.setParameter("EAN_code", EAN_code); System.out.println(query.getSingleResult());

도움이 되었습니까?

해결책

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top