96 lines
1.7 KiB
Java
96 lines
1.7 KiB
Java
package eu.dnetlib.data.model.resource;
|
|
|
|
import java.io.Serializable;
|
|
import java.time.LocalDateTime;
|
|
|
|
import jakarta.persistence.Column;
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.Id;
|
|
import jakarta.persistence.Table;
|
|
|
|
@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 = "type")
|
|
private String type;
|
|
|
|
@Column(name = "subtype")
|
|
private String subtype;
|
|
|
|
@Column(name = "description")
|
|
private String description;
|
|
|
|
@Column(name = "creation_date")
|
|
private LocalDateTime creationDate;
|
|
|
|
@Column(name = "modification_date")
|
|
private LocalDateTime 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 getType() {
|
|
return type;
|
|
}
|
|
|
|
public void setType(final String type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public String getSubtype() {
|
|
return subtype;
|
|
}
|
|
|
|
public void setSubtype(final String subtype) {
|
|
this.subtype = subtype;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(final String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public LocalDateTime getCreationDate() {
|
|
return creationDate;
|
|
}
|
|
|
|
public void setCreationDate(final LocalDateTime creationDate) {
|
|
this.creationDate = creationDate;
|
|
}
|
|
|
|
public LocalDateTime getModificationDate() {
|
|
return modificationDate;
|
|
}
|
|
|
|
public void setModificationDate(final LocalDateTime modificationDate) {
|
|
this.modificationDate = modificationDate;
|
|
}
|
|
|
|
}
|