使用Hibernate +
MySQL数据库,写HQL语句时,不要忘了不支持MySQL的limit来自为知笔记(Wiz)
分类:
系统相关 时间:
2014-04-30 13:08:16
阅读次数:
725
MP4文件格式详解——结构概述http://blog.csdn.net/pirateleo/article/details/7061452一、基本概念1、文件,由许多Box和FullBox组成。2、Box,每个Box由Header和Data组成。3、FullBox,是Box的扩展,Box结构的基础上...
分类:
其他好文 时间:
2014-04-30 13:05:13
阅读次数:
806
public class Facade { /** * @param args 外观模式 */ One
one; Two two; Three three; public Facade() { one=new One(); two=new Two();
three=new Three()...
分类:
其他好文 时间:
2014-04-29 11:15:47
阅读次数:
238
思路1)拦截 WM_NCHITTEST2)判断可拖动区域3)return
HTCAPTION;引申可以拦截WM_NCHITTEST消息之后的 WM_NCLBUTTONDOWN消息,进行进一步控制。但注意
WM_NCLBUTTONUP无法拦截到,除非用HOOK
分类:
其他好文 时间:
2014-04-29 10:43:46
阅读次数:
263
http://www.ttlsa.com/?s=sphinx
分类:
其他好文 时间:
2014-04-29 10:42:47
阅读次数:
229
Div不根据内容自适应高度,我们看下面的代码:
当Content内容多时,即使main设置了高度100%或auto。在不同浏览器下还是不能完好的自动伸展。内容的高度比较高了,但容器main的高度还是不能撑开。
我们可以通过三种方法来解决这个问题。 一,增加一个清除浮动,让父容器知道...
分类:
其他好文 时间:
2014-04-29 10:21:46
阅读次数:
349
Dictionarydic=lst.ToDictionary(newFunc(c=>c.Id),newFunc(c=>c.Num));//如果觉得上面的写法太复杂,还可以简化为//Dictionary
dic = lst.ToDictionary(c => c.Id, c => c.Num...
分类:
其他好文 时间:
2014-04-29 10:18:46
阅读次数:
339
protected void lbtnState_Click(object sender,
EventArgs e) { foreach (var item in div_state.Controls) { if (item is LinkB...
分类:
Web程序 时间:
2014-04-29 10:13:46
阅读次数:
438
Hello World!My first blog! I must try my best
to learn Python!print ("Hello World")
分类:
其他好文 时间:
2014-04-29 09:41:46
阅读次数:
300
由于n比较小,直接暴力解决#include #include #include #include
#include #includeusing namespace std;int main(){ int n,k; cin >> n
>> k; vector a(n); for...
分类:
其他好文 时间:
2014-04-29 09:18:46
阅读次数:
412