houyouliang / SpringCloudConfig

springcloudconfig
0 stars 0 forks source link

Account #14

Open houyouliang opened 7 years ago

houyouliang commented 7 years ago

package com.hat.bean;

import java.io.Serializable; import java.sql.Timestamp;

import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Version;

import org.hibernate.annotations.OptimisticLockType; import org.hibernate.annotations.OptimisticLocking;

@Entity @Table(name="t_account") @OptimisticLocking(type=OptimisticLockType.VERSION) public class Account implements Serializable {

/**
 * 
 */
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
@Column(name="id")
private Long id;
@Column(name="blance")
private String blance;
@Column(name="version")
@Version
private Long version;
public Long getId() {
    return id;
}
public void setId(Long id) {
    this.id = id;
}
public String getBlance() {
    return blance;
}
public void setBlance(String blance) {
    this.blance = blance;
}
public Long getVersion() {
    return version;
}
public void setVersion(Long version) {
    this.version = version;
}

}