3.基本的JBean实体
* Click the Entity object.

* Drag into the editor
* Please enter a package name and entity name and click OK button

* Click the Id object

* Set Id Object using the default values
* Click OK button.


Add Customer name.


Add Custom age.


Add Custom birthday


Click toolbar 


?





?
Refresh the project


* Click the Entity object.

* Drag into the editor
* Please enter a package name and entity name and click OK button


Entity automatically add a field, the field name is parentId.
Click toolbar 

?
create table Organ (id bigint not null auto_increment, name varchar(255), parentId bigint, primary key (id));
@Entity( name="Organ" )
@Table( name="Organ" )
public
class
Organ
implements Serializable {
……
private Long parentId;
?
@Column( name="parentId" )
public Long getParentId(){
return
this.parentId;
}
public
void setParentId(Long parentId){
this.parentId=parentId;
}
}