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