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

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

- Add a Primary key
* Click the Id object

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

- Add attribute field

Add Customer name.


Add Custom age.


Add Custom birthday


- Create Database Script
Click toolbar 

- Generate Java Entity Code

?




Click OK button.Refresh Demo Project

?
Refresh the project

- Create a hierarchical JBean Entity

- Create Entity
* Click the Entity object.

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

- Data type is hierarchical

Entity automatically add a field, the field name is parentId.
- Create Database Script
Click toolbar 

?
create table Organ (id bigint not null auto_increment, name varchar(255), parentId bigint, primary key (id));
- Generate Java Entity Code
@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;
}
}