摘要: 在address中没有特殊的注解。在Person中对应到数据库里面就有一个指向Address的外键.我们也可以增加注释指定外键的列的名字,如下:@OneToOne(cascade=CascadeType.ALL,optional=true) @JoinColumn(name="addressID")... 阅读全文
posted @ 2015-07-02 14:26 残星 阅读(56627) 评论(2) 推荐(3) 编辑
摘要: import java.util.*;import net.sf.json.JSONArray;import net.sf.json.JSONObject;import net.sf.json.JsonConfig;import net.sf.json.util.CycleDetectionStra... 阅读全文
posted @ 2015-07-02 11:07 残星 阅读(876) 评论(0) 推荐(0) 编辑