From 8bffd0e947bdf8288eec321a7187b8e0d2422809 Mon Sep 17 00:00:00 2001 From: Massimiliano Cristarella Date: Tue, 6 Sep 2022 00:31:43 +0200 Subject: [PATCH] Downgrade Hibernate to finally fix dependency incompatibilities! Add some named queries to entities and fix access by primary key --- .idea/artifacts/TripRecorder_war_exploded.xml | 61 +++++++++---------- .idea/dataSources.xml | 11 ++++ .idea/inspectionProfiles/Project_Default.xml | 3 + pom.xml | 40 +++++++----- .../com/mcris/triprecorder/HelloServlet.java | 9 ++- .../models/entities/Geopoint.java | 8 ++- .../triprecorder/models/entities/Session.java | 18 ++++-- .../triprecorder/models/entities/Trip.java | 17 ++++-- .../triprecorder/models/entities/User.java | 8 ++- 9 files changed, 109 insertions(+), 66 deletions(-) diff --git a/.idea/artifacts/TripRecorder_war_exploded.xml b/.idea/artifacts/TripRecorder_war_exploded.xml index 8245672..19be8c5 100644 --- a/.idea/artifacts/TripRecorder_war_exploded.xml +++ b/.idea/artifacts/TripRecorder_war_exploded.xml @@ -14,46 +14,44 @@ - - + + - + - - + + - - - - - - + + + + + + + - - - + + - - - - - + - + + + + - - - - - - - - - - - + + + + + + + + + + @@ -64,6 +62,7 @@ + diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml index a674c43..0096713 100644 --- a/.idea/dataSources.xml +++ b/.idea/dataSources.xml @@ -8,5 +8,16 @@ jdbc:mysql://localhost:3306/trip_recorder $ProjectFileDir$ + + mysql.8 + true + true + Hibernate + +C:/Users/mcris/Source/Repos/ProgrWeb2021/src/main/resources/META-INF/persistence.xml + com.mysql.cj.jdbc.Driver + jdbc:mysql://localhost:3306/trip_recorder + $ProjectFileDir$ + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 146ab09..6cba5a4 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -1,6 +1,9 @@