
www.mys.com.oauth2.pojo.OauthCode Maven / Gradle / Ivy
package www.mys.com.oauth2.pojo;
import org.hibernate.annotations.Type;
import javax.persistence.*;
import java.util.Arrays;
@Entity
public class OauthCode {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String code;
@Lob
@Type(type="org.hibernate.type.ImageType")
private byte[] authentication;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public byte[] getAuthentication() {
return authentication;
}
public void setAuthentication(byte[] authentication) {
this.authentication = authentication;
}
@Override
public String toString() {
return "OauthCode{" +
"id=" + id +
", code='" + code + '\'' +
", authentication=" + Arrays.toString(authentication) +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy