diff --git a/src/main/java/com/example/cosmos_serversb/models/Groups.java b/src/main/java/com/example/cosmos_serversb/models/Groups.java index 8ad43dc..d8975b6 100644 --- a/src/main/java/com/example/cosmos_serversb/models/Groups.java +++ b/src/main/java/com/example/cosmos_serversb/models/Groups.java @@ -65,16 +65,6 @@ session.save(testGroup); session.getTransaction().commit(); session.close(); - - Session output = sessionFactory.openSession(); - output.beginTransaction(); - //hibernateテスト用出力 - List groupResult = output.createQuery( "from Group" ).list(); - for ( Group group : (List) groupResult ) { - System.out.println( "Group (" + group.getgId() + ") : " + group.getUri() + ": " + group.getName()); - } - output.getTransaction().commit(); - output.close(); return testGroup; }