From e777f29585ffc29009f8fda3ae9ba703be4c8a26 Mon Sep 17 00:00:00 2001 From: britea Date: Wed, 18 Mar 2020 13:29:21 +0100 Subject: [PATCH] Fix lob errors --- .../sa4/sanmarinoes/smarthut/models/DeviceRepository.java | 5 +++++ .../ch/usi/inf/sa4/sanmarinoes/smarthut/models/Room.java | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/DeviceRepository.java b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/DeviceRepository.java index f844882..ef57a88 100644 --- a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/DeviceRepository.java +++ b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/DeviceRepository.java @@ -6,6 +6,8 @@ import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.query.Param; +import javax.transaction.Transactional; + /** * DeviceRepository acts as a superclass for the other repositories so to mirror in the database the * class inheritance present among the various devices. @@ -20,6 +22,7 @@ public interface DeviceRepository extends CrudRepository findByIdAndUsername(Long id, String username); @@ -29,6 +32,7 @@ public interface DeviceRepository extends CrudRepository findAllByUsername(String username); @@ -38,6 +42,7 @@ public interface DeviceRepository extends CrudRepository