Add Source Code Linter Pipeline

This commit is contained in:
Siwat Sirichai 2020-10-29 16:38:56 +07:00
parent 0d0e7140c4
commit d252f6ef50
313 changed files with 36277 additions and 0 deletions

View file

@ -0,0 +1,199 @@
package it.ramecera.screwdriver.waxds.copper;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
/** The persistent class for the actors database table. */
@Entity
@Table(name = "actors", schema = "copper")
@NamedQuery(name = "Actor.findAll", query = "SELECT a FROM Actor a")
public class Actor implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Integer star;
private Timestamp creationdate;
private Timestamp firstlogin;
private String firstname;
private Timestamp lastlogin;
private String lastname;
private Timestamp lastupdatepassword;
private String password;
private Integer penalities;
private Integer rating;
private Timestamp updatedate;
private String userid;
// bi-directional many-to-one association to Author
@OneToMany(mappedBy = "actor")
private List<Author> authors;
// bi-directional many-to-one association to Novel
@OneToMany(mappedBy = "actor")
private List<Novel> novels;
public Actor() {
}
public Integer getStar() {
return this.star;
}
public void setStar(Integer star) {
this.star = star;
}
public Timestamp getCreationdate() {
return this.creationdate;
}
public void setCreationdate(Timestamp creationdate) {
this.creationdate = creationdate;
}
public Timestamp getFirstlogin() {
return this.firstlogin;
}
public void setFirstlogin(Timestamp firstlogin) {
this.firstlogin = firstlogin;
}
public String getFirstname() {
return this.firstname;
}
public void setFirstname(String firstname) {
this.firstname = firstname;
}
public Timestamp getLastlogin() {
return this.lastlogin;
}
public void setLastlogin(Timestamp lastlogin) {
this.lastlogin = lastlogin;
}
public String getLastname() {
return this.lastname;
}
public void setLastname(String lastname) {
this.lastname = lastname;
}
public Timestamp getLastupdatepassword() {
return this.lastupdatepassword;
}
public void setLastupdatepassword(Timestamp lastupdatepassword) {
this.lastupdatepassword = lastupdatepassword;
}
public String getPassword() {
return this.password;
}
public void setPassword(String password) {
this.password = password;
}
public Integer getPenalities() {
return this.penalities;
}
public void setPenalities(Integer penalities) {
this.penalities = penalities;
}
public Integer getRating() {
return this.rating;
}
public void setRating(Integer rating) {
this.rating = rating;
}
public Timestamp getUpdatedate() {
return this.updatedate;
}
public void setUpdatedate(Timestamp updatedate) {
this.updatedate = updatedate;
}
public String getUserid() {
return this.userid;
}
public void setUserid(String userid) {
this.userid = userid;
}
public List<Author> getAuthors() {
return this.authors;
}
public void setAuthors(List<Author> authors) {
this.authors = authors;
}
public Author addAuthor(Author author) {
getAuthors().add(author);
author.setActor(this);
return author;
}
public Author removeAuthor(Author author) {
getAuthors().remove(author);
author.setActor(null);
return author;
}
public List<Novel> getNovels() {
return this.novels;
}
public void setNovels(List<Novel> novels) {
this.novels = novels;
}
public Novel addNovel(Novel novel) {
getNovels().add(novel);
novel.setActor(this);
return novel;
}
public Novel removeNovel(Novel novel) {
getNovels().remove(novel);
novel.setActor(null);
return novel;
}
}

View file

@ -0,0 +1,118 @@
package it.ramecera.screwdriver.waxds.copper;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
/** The persistent class for the authors database table. */
@Entity
@Table(name = "authors", schema = "copper")
@NamedQuery(name = "Author.findAll", query = "SELECT a FROM Author a")
public class Author implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Integer star;
private Timestamp creationdate;
private String name;
private String surname;
private Timestamp updatedate;
// bi-directional many-to-one association to Actor
@ManyToOne
@JoinColumn(name = "modifier")
private Actor actor;
// bi-directional many-to-one association to Novel
@OneToMany(mappedBy = "authorBean")
private List<Novel> novels;
public Author() {
}
public Integer getStar() {
return this.star;
}
public void setStar(Integer star) {
this.star = star;
}
public Timestamp getCreationdate() {
return this.creationdate;
}
public void setCreationdate(Timestamp creationdate) {
this.creationdate = creationdate;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getSurname() {
return this.surname;
}
public void setSurname(String surname) {
this.surname = surname;
}
public Timestamp getUpdatedate() {
return this.updatedate;
}
public void setUpdatedate(Timestamp updatedate) {
this.updatedate = updatedate;
}
public Actor getActor() {
return this.actor;
}
public void setActor(Actor actor) {
this.actor = actor;
}
public List<Novel> getNovels() {
return this.novels;
}
public void setNovels(List<Novel> novels) {
this.novels = novels;
}
public Novel addNovel(Novel novel) {
getNovels().add(novel);
novel.setAuthorBean(this);
return novel;
}
public Novel removeNovel(Novel novel) {
getNovels().remove(novel);
novel.setAuthorBean(null);
return novel;
}
}

View file

@ -0,0 +1,103 @@
package it.ramecera.screwdriver.waxds.copper;
import java.io.Serializable;
import java.sql.Timestamp;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
/** The persistent class for the novels database table. */
@Entity
@Table(name = "novels", schema = "copper")
@NamedQuery(name = "Novel.findAll", query = "SELECT n FROM Novel n")
public class Novel implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Integer star;
private Timestamp creationdate;
private String language;
private String title;
private Timestamp updatedate;
// bi-directional many-to-one association to Actor
@ManyToOne
@JoinColumn(name = "modifier")
private Actor actor;
// bi-directional many-to-one association to Author
@ManyToOne
@JoinColumn(name = "author")
private Author authorBean;
public Novel() {
}
public Integer getStar() {
return this.star;
}
public void setStar(Integer star) {
this.star = star;
}
public Timestamp getCreationdate() {
return this.creationdate;
}
public void setCreationdate(Timestamp creationdate) {
this.creationdate = creationdate;
}
public String getLanguage() {
return this.language;
}
public void setLanguage(String language) {
this.language = language;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
public Timestamp getUpdatedate() {
return this.updatedate;
}
public void setUpdatedate(Timestamp updatedate) {
this.updatedate = updatedate;
}
public Actor getActor() {
return this.actor;
}
public void setActor(Actor actor) {
this.actor = actor;
}
public Author getAuthorBean() {
return this.authorBean;
}
public void setAuthorBean(Author authorBean) {
this.authorBean = authorBean;
}
}