国内freebsd的pkg10的源都没有,因此用port的试试配置portsnapvi /etc/portsnap.conf修改SERVERNAME=portsnap.hshh.org执行portsnap fetch extract修改镜像地址vi /etc/make.conf改成MASTER_SI...
分类:
其他好文 时间:
2014-09-09 21:30:29
阅读次数:
271
学习云风的skynet源代码,简单记录下。void skynet_globalmq_push(struct message_queue * queue) { struct global_queue *q= Q; uint32_t tail = GP(__sync_fetch_and_add(&q->...
分类:
Web程序 时间:
2014-09-06 17:24:23
阅读次数:
228
Hibernate中的字段映射中的Fetch有两种方式:EAGER和LAZYEager:全部抓取Lazy:延迟抓取如果在字段中声明为Eager,那么在取得当前Bean时,同时会抓取Bean中的关联Bean值。即数据库查询多次。反之Lazy则在之后抓取提交查询。比如,有如下声明为Eager的User ...
分类:
系统相关 时间:
2014-09-05 17:59:21
阅读次数:
233
1.Hibernate: ORM框架,简化SQL开发,编程接口丰富,简化JDBC编程2.有点: Lazy机制配合Fetch的HQL高级查询,提高开发效率 难点:理解Lazy与Fetch JOIN的原理,设计良好的对象关系3.与SpirngJDBC相比: 要求对ORM的原理以及HQL的原理理解...
分类:
系统相关 时间:
2014-09-03 22:40:47
阅读次数:
396
@ManyToMany注释:表示此类是多对多关系的一边,mappedBy 属性定义了此类为双向关系的维护端,注意:mappedBy 属性的值为此关系的另一端的属性名。例如,在Student类中有如下方法:被控方:@ManyToMany(fetch = FetchType.LAZY, mappedBy...
分类:
其他好文 时间:
2014-09-03 11:05:06
阅读次数:
289
declare cursor s is select version from city_server t; s_ city_server.version%type;begin open s; fetch s into s_; if s_>2 then DBMS_OUTPUT.put_line(s_); end if; close s;end;...
分类:
数据库 时间:
2014-09-02 10:35:24
阅读次数:
200
##############index.php###################### 0)$tot=mysql_fetch_array($res);$total=$tot[0];$total_page=ceil($total/$pagenum);echo "";echo "共:".$tota....
分类:
Web程序 时间:
2014-09-01 17:37:06
阅读次数:
203
问题描述使用SDK Manager更新时出现问题Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to https://dl-ssl.google...
分类:
移动开发 时间:
2014-09-01 17:27:33
阅读次数:
247
SQL 跳出游标 breakif xx<=30 begin break end else FETCH NEXT FROM 游标 INTO 参数转载自http://tom-cat.blog.163.com/blog/static/393230201281631964/,感谢Tom 的博客 171106...
分类:
数据库 时间:
2014-08-28 17:59:05
阅读次数:
339
学习云风的skynet源码,简单记录下。
void
skynet_globalmq_push(struct message_queue * queue) {
struct global_queue *q= Q;
uint32_t tail = GP(__sync_fetch_and_add(&q->tail,1));
// only one thread can set the sl...
分类:
Web程序 时间:
2014-08-25 21:11:04
阅读次数:
499