package com.ajb.car.entity.meta;

import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="userdata")
public class Userdata implements java.io.Serializable {

private static final long serialVersionUID = 1L;

	/** ?? 主键,???? ag_md_code_type.id */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="id")
	private Long id;

	@Column(name="username")
	private String username;

	@Column(name="pasword")
	private String pasword;

	@Column(name="encryptedpassword")
	@Convert(converter = com.ajb.common.utils.encryption.JPACryptoConverter.class)
	private String encryptedpassword;

	@Column(name="telephone")
	@Convert(converter = com.ajb.common.utils.encryption.JPACryptoConverter.class)
	private String telephone;
	
	@Column(name="idnumber")
	@Convert(converter = com.ajb.common.utils.encryption.JPACryptoConverter.class)
	private String idnumber;
	
	public String getUsername(){
		return this.username;
	}
	public void setUsername(String username){
		this.username = username;
	}

	public String getPasword(){
		return this.pasword;
	}
	public void setPasword(String pasword){
		this.pasword = pasword;
	}

	public String getEncryptedpassword(){
		return this.encryptedpassword;
	}
	public void setEncryptedpassword(String encryptedpassword){
		this.encryptedpassword = encryptedpassword;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getIdnumber() {
		return idnumber;
	}
	public void setIdnumber(String idnumber) {
		this.idnumber = idnumber;
	}
}