1. use this persistence.xml - simply copy it
into src/main/resources/META-INF org.hibernate.ejb.HibernatePersistence
jdbc/jbpm-ds ...
分类:
其他好文 时间:
2014-06-29 07:40:54
阅读次数:
1021
1 查看各个项目的Project ID编号
mysql -uroot -h10.10.2xx.xx
show databases;
use bugfree2;
desc bf_TestProject;
select ProjectID,ProjectName from bf_TestProject;(查询结果如下)
2 在/va...
分类:
其他好文 时间:
2014-06-20 12:19:19
阅读次数:
262
查询已经创建的数据库 show dbs
选择数据库
use DATABASE_NAME
查询该数据库里面的集合 show collections
删除集合操作:
db.COLLECTION_NAME.drop()
插入数据操作:
db.COLLECTION_NAME.insert(
do...
分类:
数据库 时间:
2014-06-20 10:57:41
阅读次数:
275
今天看别人项目,看到别人使用了SwipeListView,Google一把,果然github上的,也参考了csdn上的几篇文章,然后自己写了个例子,分享给大家。
效果图:
嗯,看一眼SwipeListView的参数的设置:
If you decide to use SwipeListView as a view, you can define it in your xml l...
分类:
微信 时间:
2014-06-20 10:04:06
阅读次数:
461
LigerUi-Js中Grid行修改时,不执行保存事件的原因?(已解决)
(1)
(2)下面代码写在grid上面
function itemclick1(item) {
var editingrow = grid.getEditingRow();
switch (item.text) {
case "增加":
...
分类:
Web程序 时间:
2014-06-20 09:40:01
阅读次数:
425
Enumerations and Structures
Enumerations 枚举的使用
使用 enum 定义一个枚举,枚举里面可以关联方法,比如下文中的描述方法
enum Rank: Int {
case Ace = 1
case Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten
case Ja...
分类:
其他好文 时间:
2014-06-20 09:03:39
阅读次数:
322
视图可以屏蔽某些基表的信息,或是join多个基表组成一个复杂查询,视图本身也是可以进行DML操作,但受一些条件的限制。
首先我们看下官方文档对视图进行DML操作的要求说明:
The following notes apply to updatable views:
An updatable view is one you can use to insert, update, or...
分类:
其他好文 时间:
2014-06-07 16:08:45
阅读次数:
264
uiautomator神工具
虽然没找到解决的方法,但是让我无意中发现了一个好工具,比sl4a更好用的工具,直接包装uiautomator,调用uiautomator的api在本地直接编写脚本,然后运行测试case,这样比用java写,然后再打包,runcase要简单的多,关键是他...
分类:
Web程序 时间:
2014-06-07 15:30:08
阅读次数:
698
/*
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y...
分类:
其他好文 时间:
2014-06-07 14:55:47
阅读次数:
249
1. 普通的二分查找2. 查找最左边的值3. 查找最右边的值Worst case
performance: O(log n)Best case performance: O(1)Average case performance: O(log
n)Worst case space complexity...
分类:
其他好文 时间:
2014-06-07 11:19:48
阅读次数:
248