Use exponential backoff when updating the password or last login time in WebDAV.
[pithos] / src / gr / ebs / gss / server / domain / FileHeader.java
index a4b48b0..6c528f6 100644 (file)
@@ -42,11 +42,15 @@ import javax.persistence.Table;
 import javax.persistence.UniqueConstraint;\r
 import javax.persistence.Version;\r
 \r
+import org.hibernate.annotations.Cache;\r
+import org.hibernate.annotations.CacheConcurrencyStrategy;\r
+\r
 /**\r
  * The immutable part of the structure of a file on the GSS service.\r
  */\r
 @Entity\r
 @Table(name="fileheader", uniqueConstraints=@UniqueConstraint(columnNames={"folder_id", "name"}))\r
+@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)\r
 public final class FileHeader  implements Serializable{\r
 \r
        /**\r