Skip to content

Instantly share code, notes, and snippets.

@FranckSilvestre
Created April 4, 2019 13:46
Show Gist options
  • Save FranckSilvestre/b91a50ee79913cfd5b87b4fdae780374 to your computer and use it in GitHub Desktop.
Save FranckSilvestre/b91a50ee79913cfd5b87b4fdae780374 to your computer and use it in GitHub Desktop.
Class activity for project "myaactivities".
package myactivities.myactivities.model;
import java.util.Date;
public class Activity {
private Long id;
private String title;
private String description;
private Date creationDate;
private Date modificationDate;
private String ownerId;
private String username;
public Activity() {}
public Activity(String title, String description) {
this.title = title;
this.description = description;
}
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Date getCreationDate() {
return creationDate;
}
public void setCreationDate(Date creationDate) {
this.creationDate = creationDate;
}
public Date getModificationDate() {
return modificationDate;
}
public void setModificationDate(Date modificationDate) {
this.modificationDate = modificationDate;
}
public String getOwnerId() {
return ownerId;
}
public void setOwnerId(String ownerId) {
this.ownerId = ownerId;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
@Override
public String toString() {
return "Activity{" +
"id=" + id +
", title='" + title + '\'' +
", description='" + description + '\'' +
", creationDate=" + creationDate +
", modificationDate=" + modificationDate +
", ownerId='" + ownerId + '\'' +
", username='" + username + '\'' +
'}';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment