cache tweaks

This commit is contained in:
Athou
2013-06-06 08:50:15 +02:00
parent 5661b00c9b
commit c907abbf62
3 changed files with 14 additions and 8 deletions

View File

@@ -1,13 +1,19 @@
package com.commafeed.backend.model;
import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
@Entity
@Table(name = "FEEDENTRYCONTENTS")
@SuppressWarnings("serial")
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class FeedEntryContent extends AbstractModel {
@Column(length = 2048)