diff --git a/src/test/java/hibernateTest/models/NativeApiIllustrationTest.java b/src/test/java/hibernateTest/models/NativeApiIllustrationTest.java index b807845..e7ac3f7 100644 --- a/src/test/java/hibernateTest/models/NativeApiIllustrationTest.java +++ b/src/test/java/hibernateTest/models/NativeApiIllustrationTest.java @@ -94,10 +94,10 @@ session = sessionFactory.openSession(); session.beginTransaction(); //load()メソッドを用いて取得する方法。 - Request deletedRequest = (Request) session.load(Request.class, "222"); + Request deleteRequest = (Request) session.load(Request.class, "222"); //データの削除 - if(deletedRequest != null){ - session.delete(deletedRequest); + if(deleteRequest != null){ + session.delete(deleteRequest); } session.getTransaction().commit(); session.close();