78 lines
1.5 KiB
Java
78 lines
1.5 KiB
Java
package eu.dnetlib.is.resource.model;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Date;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Table;
|
|
import javax.persistence.Temporal;
|
|
import javax.persistence.TemporalType;
|
|
|
|
@Entity
|
|
@Table(name = "resources")
|
|
public class SimpleResource implements Serializable {
|
|
|
|
private static final long serialVersionUID = -5339095932018797315L;
|
|
|
|
@Id
|
|
@Column(name = "id")
|
|
private String id;
|
|
|
|
@Column(name = "name")
|
|
private String name;
|
|
|
|
@Column(name = "description")
|
|
private String description;
|
|
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
@Column(name = "creation_date")
|
|
private Date creationDate;
|
|
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
@Column(name = "modification_date")
|
|
private Date modificationDate;
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(final String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(final String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(final String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public Date getCreationDate() {
|
|
return creationDate;
|
|
}
|
|
|
|
public void setCreationDate(final Date creationDate) {
|
|
this.creationDate = creationDate;
|
|
}
|
|
|
|
public Date getModificationDate() {
|
|
return modificationDate;
|
|
}
|
|
|
|
public void setModificationDate(final Date modificationDate) {
|
|
this.modificationDate = modificationDate;
|
|
}
|
|
|
|
}
|