订座系统 数据结构设计
各位好,现在有个设计的问题,场景如下:
商家的类:
class Shangjia{
public String id=""
@Indexed
public String name = "";
@Indexed
public String address = "";
@Indexed
public String[] telephone = {""};
}
class{
String id = "";
String shangjiaId = "";
Map<Integer, Integer> xinxi = new HashMap<Integer, Integer>();
static {
xinxi.put(1,0);
xinxi.put(2,0);
xinxi.put(3,0);
xinxi.put(4,0);
xinxi.put(5,0);
...
xinxi.put(x,0);
}
}