mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-24 13:44:33 +00:00
[AB-192] removing second level cache
changing assignable role place module name fixing starboard retrieving the starstats incorrectly fixing removing user assigned roles when removing a role from assignable role place fixing not being able to remove external emote for assignable role place
This commit is contained in:
@@ -2,10 +2,8 @@ package dev.sheldan.abstracto.scheduling.repository;
|
||||
|
||||
import dev.sheldan.abstracto.scheduling.model.database.SchedulerJob;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.QueryHints;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import javax.persistence.QueryHint;
|
||||
|
||||
/**
|
||||
* Repository responsible to access the stored job configuration in the database
|
||||
@@ -18,7 +16,6 @@ public interface SchedulerJobRepository extends JpaRepository<SchedulerJob, Long
|
||||
* @param name The name of the job to check for existence
|
||||
* @return Boolean variable representing whether or not the job identified by the name exists.
|
||||
*/
|
||||
@QueryHints(@QueryHint(name = org.hibernate.annotations.QueryHints.CACHEABLE, value = "true"))
|
||||
boolean existsByName(String name);
|
||||
|
||||
/**
|
||||
@@ -26,6 +23,5 @@ public interface SchedulerJobRepository extends JpaRepository<SchedulerJob, Long
|
||||
* @param name The name of the job to search for
|
||||
* @return The found {@link SchedulerJob} instance by the name
|
||||
*/
|
||||
@QueryHints(@QueryHint(name = org.hibernate.annotations.QueryHints.CACHEABLE, value = "true"))
|
||||
SchedulerJob findByName(String name);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@ package dev.sheldan.abstracto.scheduling.model.database;
|
||||
|
||||
|
||||
import lombok.*;
|
||||
import org.hibernate.annotations.CacheConcurrencyStrategy;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
@@ -19,8 +18,6 @@ import java.io.Serializable;
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode
|
||||
@Cacheable
|
||||
@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
|
||||
public class SchedulerJob implements Serializable {
|
||||
|
||||
@Id
|
||||
|
||||
Reference in New Issue
Block a user