@@ -0,0 +1,1992 @@
+import java.io.Serializable;%0A%0Aimport javax.persistence.Column;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.Id;%0A%0Aimport org.compass.annotations.Index;%0Aimport org.compass.annotations.Searchable;%0Aimport org.compass.annotations.SearchableProperty;%0Aimport org.compass.annotations.Store;%0A%0A@Entity @Searchable(root=false)%0Apublic class Brand implements Serializable%7B%0A%09private static final long serialVersionUID = -4540465642606278764L;%0A%09private String code;%0A%09/** %E5%93%81%E7%89%8C%E5%90%8D%E7%A7%B0 **/%0A%09private String name;%0A%09/** %E6%98%AF%E5%90%A6%E5%8F%AF%E8%A7%81 **/%0A%09private Boolean visible = true;%0A%09/** logo%E5%9B%BE%E7%89%87%E8%B7%AF%E5%BE%84 %E5%A6%82:/images/brand/2008/12/12/ooo.gif%22 **/%0A%09private String logopath;%0A%09%0A%09public Brand(String code) %7B%0A%09%09this.code = code;%0A%09%7D%0A%0A%09public Brand() %7B%7D%0A%09%0A%09public Brand(String name, String logopath) %7B%0A%09%09this.name = name;%0A%09%09this.logopath = logopath;%0A%09%7D%0A%09%0A%09@Id @Column(length=36) @SearchableProperty(index=Index.NO, store=Store.YES)%0A%09public String getCode() %7B%0A%09%09return code;%0A%09%7D%0A%09public void setCode(String code) %7B%0A%09%09this.code = code;%0A%09%7D%0A%09@Column(length=40, nullable=false)  @SearchableProperty(index=Index.NO, store=Store.YES)%0A%09public String getName() %7B%0A%09%09return name;%0A%09%7D%0A%09public void setName(String name) %7B%0A%09%09this.name = name;%0A%09%7D%0A%09@Column(nullable=false)%0A%09public Boolean getVisible() %7B%0A%09%09return visible;%0A%09%7D%0A%09public void setVisible(Boolean visible) %7B%0A%09%09this.visible = visible;%0A%09%7D%0A%09@Column(length=80)%0A%09public String getLogopath() %7B%0A%09%09return logopath;%0A%09%7D%0A%09public void setLogopath(String logopath) %7B%0A%09%09this.logopath = logopath;%0A%09%7D%0A%09%0A%09@Override%0A%09public int hashCode() %7B%0A%09%09final int prime = 31;%0A%09%09int result = 1;%0A%09%09result = prime * result + ((code == null) ? 0 : code.hashCode());%0A%09%09return result;%0A%09%7D%0A%09@Override%0A%09public boolean equals(Object obj) %7B%0A%09%09if (this == obj)%0A%09%09%09return true;%0A%09%09if (obj == null)%0A%09%09%09return false;%0A%09%09if (getClass() != obj.getClass())%0A%09%09%09return false;%0A%09%09final Brand other = (Brand) obj;%0A%09%09if (code == null) %7B%0A%09%09%09if (other.code != null)%0A%09%09%09%09return false;%0A%09%09%7D else if (!code.equals(other.code))%0A%09%09%09return false;%0A%09%09return true;%0A%09%7D%0A%7D%0A

Create Brand.java