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

com.formkiq.server.domain.Asset Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy