首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

公开SNS社区及时找朋友链的源代码和部署方案(续一)

2012-07-02 
公开SNS社区即时找朋友链的源代码和部署方案(续一)1) Versant数据库可以直接支持复杂的业务模型:public cl

公开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

若需要了解全部代码请回帖。

热点排行