公开SNS社区即时找朋友链的源代码和部署方案(续一)
1) Versant数据库可以直接支持复杂的业务模型:
public class Person {
String firstName;
String lastName;
String gender;
String ethnicity;
String language;
// 新增的节点
int index = 5;
Contact info;
Location location;
public String primaryCountry;
public String primaryAreaCode;
HashSet<Person> friends = new HashSet<Person>();
HashSet<Person> colleagues = new HashSet<Person>();
HashSet<Person> family = new HashSet<Person>();
HashSet<Person> relations = new HashSet<Person>();
}
Versant数据库可以直接支持包括HashSet、LinkedList在内的复杂数据结构。
若需要了解其解决方案,请点击:http://wenku.baidu.com/view/f6b9081ba76e58fafab00343.html?st=1
若需要了解全部代码请回帖。