package com.fr.plugin.entitys; import com.fr.plugin.beans.MyGroupBean; 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; @Entity @Table( name = "fine_yt_group" ) public class YtGroupEntity extends BaseEntity { @Column( name = "name" ) private String name; @Column( name = "groupId" ) private String groupId; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getGroupId() { return groupId; } public void setGroupId(String groupId) { this.groupId = groupId; } public MyGroupBean createBean(){ MyGroupBean bean=new MyGroupBean(); bean.setId(this.getId()); bean.setName(this.name); bean.setGroupId(this.groupId); return bean; } }