Skip to content
Snippets Groups Projects
Commit 28af694f authored by Goik Martin's avatar Goik Martin
Browse files

Enable caching for all entities

parent e27c1aa8
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,6 @@ package de.hdm_stuttgart.mi.sda2.ehcache.domain;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Cacheable;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
......@@ -11,7 +10,6 @@ import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity
@Cacheable(true)
public class Department {
@Id
......
package de.hdm_stuttgart.mi.sda2.ehcache.domain;
import javax.persistence.Cacheable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
@Entity
@Cacheable(true)
public class Employee {
@Id
@GeneratedValue
......
......@@ -9,7 +9,7 @@
<class>de.hdm_stuttgart.mi.sda2.ehcache.domain.Employee</class>
<class>de.hdm_stuttgart.mi.sda2.ehcache.domain.Department</class>
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
<shared-cache-mode>ALL</shared-cache-mode>
<properties>
<property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment