mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
72 lines
1.2 KiB
Java
72 lines
1.2 KiB
Java
package com.avaje.tests.model.basic;
|
|
|
|
import java.sql.Date;
|
|
import java.sql.Timestamp;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Table;
|
|
|
|
import com.avaje.ebean.annotation.Encrypted;
|
|
|
|
@Entity
|
|
@Table(name="e_basicenc")
|
|
public class EBasicEncrypt {
|
|
|
|
@Id
|
|
Integer id;
|
|
|
|
String name;
|
|
|
|
//@Lob
|
|
@Encrypted(dbLength=80)
|
|
String description;
|
|
|
|
@Encrypted(dbLength=20)
|
|
Date dob;
|
|
|
|
//@Version
|
|
Timestamp lastUpdate;
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public Date getDob() {
|
|
return dob;
|
|
}
|
|
|
|
public void setDob(Date dob) {
|
|
this.dob = dob;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public Timestamp getLastUpdate() {
|
|
return lastUpdate;
|
|
}
|
|
|
|
public void setLastUpdate(Timestamp lastUpdate) {
|
|
this.lastUpdate = lastUpdate;
|
|
}
|
|
|
|
}
|