com.formkiq.server.domain.Folder Maven / Gradle / Ivy
package com.formkiq.server.domain;
import java.util.Date;
import java.util.UUID;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import org.hibernate.annotations.Type;
/**
* Folder domain.
*
*/
@Entity
@Table(name = "folders")
public class Folder {
/** identifier column. */
@Id
@Column(name = "folder_id", unique = true, columnDefinition = "uuid")
@Type(type = "pg-uuid")
private UUID folderid;
/** Name of folder. */
@NotNull
@Column(name = "name")
private String name;
/** inserted column. */
@NotNull
@Column(name = "inserted_date", nullable = false)
private Date insertedDate;
/**
* default constructor.
*/
public Folder() {
}
/**
* @return {@link UUID}
*/
public UUID getFolderid() {
return this.folderid;
}
/**
* @param folder {@link UUID}
*/
public void setFolderid(final UUID folder) {
this.folderid = folder;
}
/**
* @return {@link String}
*/
public String getName() {
return this.name;
}
/**
* @param foldername {@link String}
*/
public void setName(final String foldername) {
this.name = foldername;
}
/**
* @return {@link Date}
*/
public Date getInsertedDate() {
return this.insertedDate != null ? (Date) this.insertedDate.clone()
: null;
}
/**
* @param date {@link Date}
*/
public void setInsertedDate(final Date date) {
this.insertedDate = date != null ? (Date) date.clone() : null;
}
}