[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:
Sheldan
2021-02-13 14:48:56 +01:00
parent 047c574319
commit 34b9bca7ac
114 changed files with 88 additions and 460 deletions

View File

@@ -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);
}

View File

@@ -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