fixat lite knas i annoteringarna
git-svn-id: svn://svn.dsv.su.se/scipro/scipro/trunk@241 73ecded7-942e-4092-bab0-0e58ef0ee984
This commit is contained in:
parent
a17ae68445
commit
e303aedb1d
@ -18,9 +18,14 @@ package se.su.dsv.scipro.data.dataobjects;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Cacheable;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import org.hibernate.annotations.Cache;
|
||||
import org.hibernate.annotations.CacheConcurrencyStrategy;
|
||||
|
||||
|
||||
/**
|
||||
@ -30,6 +35,9 @@ import javax.persistence.Id;
|
||||
* @author Martin Peters - mpeters@dsv.su.se
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="file_description")
|
||||
@Cacheable(true)
|
||||
@Cache(usage= CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) //Hibernate specific
|
||||
public class FileDescription extends DomainObject implements Comparable<FileDescription>{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
Loading…
x
Reference in New Issue
Block a user