com.rt.orm.entity.IDEntity Maven / Gradle / Ivy
package com.rt.orm.entity;
import java.util.Map;
import com.rt.core.beans.Property;
/**
* 持久化对象基础类
*
* @author mj
*/
public class IDEntity extends Property {
private static final long serialVersionUID = 1L;
public IDEntity() {
super();
}
public IDEntity(Map map) {
super(map);
}
public IDEntity(String string) throws Exception {
super(string);
}
@Override
public String getId() {
return getString("id");
}
@Override
public void setId(String id) {
put("id", id);
}
}