比方说
@Entity
public class Brand implements Serializable{
private static final long serialVersionUID = 4657800868270083564L;
private String code;
private String name;
private Integer visible = 1;
private String logopath;

public Brand(String code){
this.code =  code;
} public Brand() {}

public Brand(String name, String logopath) {
this.name = name;
this.logopath = logopath;
}
@Id @Column(length=36) public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
@Column(length=40,nullable=false) public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Column(nullable=false) public Integer getVisible() {
return visible;
}
public void setVisible(Integer visible) {
this.visible = visible;
}
@Column(length=80) public String getLogopath() {
return logopath;
}
public void setLogopath(String logopath) {
this.logopath = logopath;
}

}
这个 不是  annotation 注释吗       
通过 这个  .java 文件  长生 hbm.xml 和 sql 语句 
是用什么方法的 ?