com.formkiq.server.domain.UserClient Maven / Gradle / Ivy
package com.formkiq.server.domain;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import org.hibernate.annotations.GenericGenerator;
/**
* Join table for Users and Clients.
*
*/
@Entity
@Table(name = "user_clients")
public class UserClient {
/** identifier column. */
@Id
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
@Column(name = "id", unique = true, columnDefinition = "uuid")
private String id;
/** User ID Column. */
@NotNull
@Column(name = "user_id", nullable = false)
private String userid;
/** Client ID column. */
@NotNull
@Column(name = "client_id", nullable = false)
private String clientid;
/** inserted column. */
@NotNull
@Column(name = "inserted_date", nullable = false)
private Date insertedDate;
/**
* default constructor.
*/
public UserClient() {
}
/**
* @return {@link String}
*/
public String getId() {
return this.id;
}
/**
* @param userclient String
*/
public void setId(final String userclient) {
this.id = userclient;
}
/**
* @return {@link String}
*/
public String getUserid() {
return this.userid;
}
/**
* @param user String
*/
public void setUserid(final String user) {
this.userid = user;
}
/**
* @return {@link String}
*/
public String getClientid() {
return this.clientid;
}
/**
* @param client String
*/
public void setClientid(final String client) {
this.clientid = client;
}
/**
* @return Date
*/
public Date getInsertedDate() {
return this.insertedDate != null ? (Date) this.insertedDate.clone()
: null;
}
/**
* @param date Date
*/
public void setInsertedDate(final Date date) {
this.insertedDate = date != null ? (Date) date.clone() : null;
}
}