import com.mysql.clusterj.annotation.Column; import com.mysql.clusterj.annotation.Index; import com.mysql.clusterj.annotation.PersistenceCapable; import com.mysql.clusterj.annotation.PrimaryKey; @PersistenceCapable(table="t_fish_food") public interface Fish { @PrimaryKey int getId(); void setId(int id); @Index(name="idx_unique_hash_name") String getName(); void setName(String name); String getWine(); void setWine(String wine); @Column(name = "taste") @Index(name="idx_taste") Integer getTastiness(); void setTastiness(Integer taste); }