
io.rainfall.store.dataset.CaseRepository Maven / Gradle / Ivy
The newest version!
package io.rainfall.store.dataset;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.Optional;
interface CaseRepository extends RecordRepository {
@Modifying(clearAutomatically = true, flushAutomatically = true)
@Query(value = "update CaseRecord r set r.value.description = :description where r.id = :id")
void setDescription(@Param("id") long id, @Param("description") String description);
@Query(value = "select r from CaseRecord r where r.value.name = :name")
Optional findByValueName(@Param("name") String name);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy