DS-3086: Optimized query and entity caching

This commit is contained in:
Tom Desair
2016-03-31 14:44:52 +02:00
committed by dylan
parent b09594ed04
commit bbb707358c
8 changed files with 34 additions and 15 deletions

View File

@@ -8,9 +8,12 @@
package org.dspace.content;
import org.dspace.core.Context;
import org.hibernate.annotations.*;
import org.hibernate.proxy.HibernateProxyHelper;
import javax.persistence.*;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* Class representing a schema in DSpace.
@@ -26,6 +29,8 @@ import javax.persistence.*;
* @see org.dspace.content.MetadataField
*/
@Entity
@Cacheable
@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@Table(name="metadataschemaregistry")
public class MetadataSchema
{