Skip to content

Commit

Permalink
return @Cacheable annotations on entitys; seems to be best practice ....
Browse files Browse the repository at this point in the history
  • Loading branch information
svencc committed Apr 12, 2024
1 parent a95576d commit 2443d4b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
@Table(indexes = {
@Index(name = "IDX_name", columnList = "name", unique = false)
})
//@Cacheable
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class GameMap implements Persistable<Long>, Serializable {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@NoArgsConstructor
@AllArgsConstructor
@Table(indexes = {})
//@Cacheable
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class MapDimensions implements Persistable<Long>, Serializable, MapRelatedEntity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@NoArgsConstructor
@AllArgsConstructor
@Table(indexes = {})
//@Cacheable
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class SquareKilometerStructureChunk implements Persistable<Long>, Serializable, MapRelatedEntity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@NoArgsConstructor
@AllArgsConstructor
@Table(indexes = {})
//@Cacheable
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class SquareKilometerTopographyChunk implements Persistable<Long>, Serializable, MapRelatedEntity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@Table(indexes = {
@Index(name = "IDX_name", columnList = "name", unique = true)
})
//@Cacheable
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ClassNameEntity implements Persistable<Long>, Serializable {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@Table(indexes = {
@Index(name = "IDX_name", columnList = "name", unique = true)
})
//@Cacheable
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class MapDescriptorTypeEntity implements Persistable<Long>, Serializable {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
@Index(name = "IDX_gameMap_mapDescriptorType", columnList = "game_map_id, map_descriptor_type_id", unique = false),
@Index(name = "IDX_squareKilometerStructureChunk", columnList = "square_kilometer_structure_chunk_id", unique = false)
})
//@Cacheable
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class MapStructureEntity implements Persistable<Long>, Serializable, MapLocatedEntity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@Table(indexes = {
@Index(name = "IDX_name", columnList = "name", unique = true)
})
//@Cacheable
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class PrefabNameEntity implements Persistable<Long>, Serializable {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@Table(indexes = {
@Index(name = "IDX_name", columnList = "name", unique = true)
})
//@Cacheable
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ResourceNameEntity implements Persistable<Long>, Serializable {

Expand Down

0 comments on commit 2443d4b

Please sign in to comment.