All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fi.foyt.fni.persistence.model.materials.GoogleDocument Maven / Gradle / Ivy

There is a newer version: 3.3.13
Show newest version
package fi.foyt.fni.persistence.model.materials;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.validation.constraints.NotNull;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Cacheable (true)
@Cache (usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@PrimaryKeyJoinColumn (name="id")
@Indexed
public class GoogleDocument extends Material {
  
  public GoogleDocument() {
    setType(MaterialType.GOOGLE_DOCUMENT);
  }
  
  public String getDocumentId() {
    return documentId;
  }
  
  public void setDocumentId(String documentId) {
    this.documentId = documentId;
  }
  
  public String getMimeType() {
    return mimeType;
  }

  public void setMimeType(String mimeType) {
    this.mimeType = mimeType;
  }
  
  @NotNull
  @NotEmpty
  @Column (nullable = false)
  private String documentId;
  
  @NotNull
  @Column (nullable = false)
  @NotEmpty
  private String mimeType;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy