com.formkiq.server.domain.Asset Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of formkiq-server Show documentation
Show all versions of formkiq-server Show documentation
Server-side integration for the FormKiQ ios application
package com.formkiq.server.domain;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import org.hibernate.annotations.GenericGenerator;
/**
* Form domain.
*
*/
@Entity
@Table(name = "assets")
public class Asset {
/** identifier column. */
@Id
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
@Column(name = "asset_id", unique = true,
columnDefinition = "uuid")
private String assetId;
/** Data Blob. */
@Lob
@NotNull
@Column(name = "data", nullable = false, columnDefinition = "lo")
private Blob data;
/**
* default constructor.
*/
public Asset() {
}
/**
* @return {@link String}
*/
public String getAssetId() {
return this.assetId;
}
/**
* @param asset String
*/
public void setAssetId(final String asset) {
this.assetId = asset;
}
/**
* @return Blob
*/
public Blob getData() {
return this.data;
}
/**
* @param blob Blob
*/
public void setData(final Blob blob) {
this.data = blob;
}
}