You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
54 lines
1.1 KiB
4 years ago
|
package com.tptj.demo.hg.simple.dao;
|
||
|
|
||
|
import com.fr.decision.base.util.UUIDUtil;
|
||
|
import com.fr.stable.db.entity.BaseEntity;
|
||
|
import com.fr.third.javax.persistence.Column;
|
||
|
import com.fr.third.javax.persistence.Entity;
|
||
|
import com.fr.third.javax.persistence.Table;
|
||
|
|
||
|
/**
|
||
|
* @author 秃破天际
|
||
|
* @version 10.0
|
||
|
* Created by 秃破天际 on 2021/8/27
|
||
|
**/
|
||
|
@Entity
|
||
|
@Table(name = "fr_demo_simple")
|
||
|
public class DemoEntity extends BaseEntity {
|
||
|
|
||
|
public static final String COLUMN_KEY = "key";
|
||
|
public static final String COLUMN_VALUE = "value";
|
||
|
|
||
|
@Column(name = COLUMN_KEY,nullable = false)
|
||
|
private String key;
|
||
|
|
||
|
@Column(name = COLUMN_VALUE,nullable = false)
|
||
|
private String value;
|
||
|
|
||
|
public DemoEntity() {
|
||
|
}
|
||
|
|
||
|
public DemoEntity(String key, String value) {
|
||
|
setId( UUIDUtil.generate() );
|
||
|
this.key = key;
|
||
|
this.value = value;
|
||
|
}
|
||
|
|
||
|
public String getKey() {
|
||
|
return key;
|
||
|
}
|
||
|
|
||
|
public void setKey(String key) {
|
||
|
this.key = key;
|
||
|
}
|
||
|
|
||
|
public String getValue() {
|
||
|
return value;
|
||
|
}
|
||
|
|
||
|
public void setValue(String value) {
|
||
|
this.value = value;
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|