@@ -0,0 +1,2204 @@
+package sg.ncl.testbed_interface.repositories.jpa;%0A%0Aimport sg.ncl.testbed_interface.domain.Credentials;%0A%0Aimport javax.persistence.*;%0A%0A/**%0A * @author Christopher Zhong%0A */%0A@Entity%0A@Table(name = %22credentials%22, indexes = %7B@Index(columnList = %22username%22)%7D)%0Apublic class CredentialsEntity extends AbstractEntity implements Credentials %7B%0A%0A    @Id%0A    @GeneratedValue%0A    @Column(name = %22id%22, nullable = false, unique = true, updatable = false)%0A    private Long id;%0A%0A    @Column(name = %22username%22, nullable = false, unique = true)%0A    private String username;%0A%0A    @Column(name = %22password%22, nullable = false)%0A    private String password;%0A%0A    @Column(name = %22hashing_algorithm%22, nullable = false)%0A    private String hashingAlgorithm;%0A%0A    @Override%0A    public String getUsername() %7B%0A        return username;%0A    %7D%0A%0A    public void setUsername(final String username) %7B%0A        this.username = username;%0A    %7D%0A%0A    @Override%0A    public String getPassword() %7B%0A        return password;%0A    %7D%0A%0A    public void setPassword(final String password) %7B%0A        this.password = password;%0A    %7D%0A%0A    public String getHashingAlgorithm() %7B%0A        return hashingAlgorithm;%0A    %7D%0A%0A    public void setHashingAlgorithm(final String hashingAlgorithm) %7B%0A        this.hashingAlgorithm = hashingAlgorithm;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) return true;%0A        if (o == null %7C%7C getClass() != o.getClass()) return false;%0A%0A        Credentials that = (Credentials) o;%0A%0A        return getUsername().equals(that.getUsername());%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return getUsername().hashCode();%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        final StringBuilder sb = new StringBuilder(%22CredentialsEntity%7B%22);%0A        sb.append(%22id=%22).append(id);%0A        sb.append(%22, username='%22).append(username).append('%5C'');%0A        sb.append(%22, password='%22).append(password).append('%5C'');%0A        sb.append(%22, hashingAlgorithm='%22).append(hashingAlgorithm).append('%5C'');%0A        sb.append(%22, createdDate=%22).append(getCreatedDate());%0A        sb.append(%22, lastModifiedDate=%22).append(getLastModifiedDate());%0A        sb.append('%7D');%0A        return sb.toString();%0A    %7D%0A%0A%7D%0A

Add CredentialsEntity class (DEV-15)