0
나는 Java
응용 프로그램을 가지고 있으며 내 Oracle
데이터베이스를 쿼리하기 위해 Repository
클래스를 만들었습니다.예기치 않은 행 수 : 실제 0 예상 1?
아래에서 지속적으로 사용하고있는 query
은 오류의 원인입니다.
검색어 :
Query query = persistence.entityManager().createNativeQuery("Select * from PERSON WHERE ID = ?");
query.setParameter(1, id);
오류 나는 점점 오전입니다
이 원인이 될 수 무엇Error : Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1javax.persistence.OptimisticLockException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
, 그리고 어떻게 그것을 해결할 수 있습니까?
그래, 어떻게할까요? – java123999