有时候我们在使用事务循环保存多个对象时,可能会出现在提交事务后发现只保存了最后一个对象例如public void saveSystemDDL(SystemDDLPojo systemDDLPojo) { String keywordname = systemDDLPojo.getKeywordna....
分类:
其他好文 时间:
2014-07-08 22:47:14
阅读次数:
305
1.查询索引数量select table_name, count(*) cnt from user_indexes where index_type='NORMAL' group by table_namehaving count(*) >= 1order by cnt desc ;2.查询外键未....
分类:
数据库 时间:
2014-07-08 22:40:18
阅读次数:
308
TCP创建socket:1 int socket(int domain, int type, int protocol);AF = Address FamilyPF = Protocol FamilyAF_INET IPv4 Internet protocols ip(7)AF_INET6 IPv6...
分类:
其他好文 时间:
2014-07-08 22:39:05
阅读次数:
352
ylbtech-DatabaseDesgin:ylbtech-cnblogs(博客园)-数据库设计-2,Admin(用户后台)DatabaseName:同学录Model:Type:Url:1.A,数据库关系图(Database Diagram) 返回顶部1.B,数据库设计脚本(Database De...
分类:
数据库 时间:
2014-07-08 22:37:39
阅读次数:
304
glusterfs中的内存管理方式: 1 struct mem_pool * 2 mem_pool_new_fn (unsigned long sizeof_type, 3 unsigned long count, char *name) 4 { 5 ...
分类:
其他好文 时间:
2014-07-08 21:50:47
阅读次数:
441
旋转可以分为n种置换,对应的不同等价类分别是gcd(n,i)个i=0时不动,有n个
翻转分为奇偶讨论,奇数时有n种置换,每种有n/2+1个
偶数时有n种置换,一半是n/2+1个,一半是n/2个
#include
#include
#include
#include
#include
#include
using namespace std;
typedef long long ll;...
分类:
其他好文 时间:
2014-07-08 19:05:15
阅读次数:
163
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/><t..
分类:
Web程序 时间:
2014-07-08 12:05:38
阅读次数:
214
HTML5的离线存储使用一个manifest文件来标明哪些文件是需要被存储的,使用如 来引入一个manifest文件,这个文件的路径可以是相对的,也可以是绝对的,如果你的web应用很多,而且希望能集中管理manifest文件,那么静态文件服务器是个不错的选择。
对于manifest文件,要求:文件的mime-type必须是 text/cache-manifest类型。本文详细描述了介绍了离线缓存实施中遇到的各种问题。...
分类:
Web程序 时间:
2014-07-08 10:45:53
阅读次数:
261
<scripttype="text/javascript"src="js/jquery-1.7.js"></script><scripttype="text/javascript">$(function(){ $("#button").click(function(){ $.ajax({ url:‘myServlet‘, type:‘post‘, dataType:‘json‘, //data:{‘username‘:$("#username").val()},/..
分类:
Web程序 时间:
2014-07-08 10:09:29
阅读次数:
257
static_cast该运算符把expression转换为type-id类型,但没有运行时类型检查来保证转换的安全性。C++中的static_cast执行非多态的转换,用于代替C中通常的转换操作。因此,被做为显式类型转换使用。比如:inti;floatf=166.71;i=static_cast<int>(f);此时结果,i的值为166..
分类:
编程语言 时间:
2014-07-08 09:48:43
阅读次数:
147