public JfAuction getMaxScoreByJfEventId(Integer jfEventId) { JfAuction jfAuction=null; String hql = "from JfAuction where jfEvent.id =:jfEventId and ....
分类:
其他好文 时间:
2015-01-12 14:28:06
阅读次数:
154
一、写WebService 建立java project 建立数据类包 com.parameters.zz 新建Person类 package com.parameters.zz;public class Person { private String name; pr...
分类:
Web程序 时间:
2015-01-12 14:27:05
阅读次数:
131
#region 程序集属性访问器 public string AssemblyTitle { get { object[] attributes = Assembly.GetExecu...
分类:
其他好文 时间:
2015-01-12 14:18:01
阅读次数:
138
发现网上很多坑爹货,有很多意思表达不全,比如jdbc连接mysql数据库的时候,设置字符集编码
可以如下配置,mysql可直接在url后面加上字符集设置:
...省略
String url = "jdbc:mysql://localhost:3306/exceltest1?useUnicode=true&characterEncoding=UTF-8&zeroDateTime...
分类:
数据库 时间:
2015-01-12 13:05:54
阅读次数:
170
Given a string s consists of upper/lower-case alphabets and empty space characters '
', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is...
分类:
其他好文 时间:
2015-01-12 13:03:03
阅读次数:
136
GetPrivateProfile.inc 1 /** 2 * AMXX INI 读取模块 3 * 兵联互创|展鸿 编写 4 * 时间 2015-1-12 5 */ 6 7 enum SUIC_DATA 8 { 9 SUIC_STRING = 1,10 SUIC_INT,1...
分类:
其他好文 时间:
2015-01-12 12:58:35
阅读次数:
390
explode()的函数原型:array explode(string separator,string input [,int limit]); //[,int limit]是表示可选的意思参数描述separator必需。规定在哪里分割字符串。string必需。要分割的字符串。limit可选。规定...
分类:
其他好文 时间:
2015-01-12 12:53:19
阅读次数:
2676
在合作开发时,C#时常需要调用C++DLL,当传递参数时时常遇到问题,尤其是传递和返回字符串是,现总结一下,分享给大家:VC++中主要字符串类型为:LPSTR,LPCSTR, LPCTSTR, string, CString, LPCWSTR, LPWSTR等但转为C#类型却不完全相同。主要有如下几...
分类:
编程语言 时间:
2015-01-12 12:52:44
阅读次数:
324
swfit中的String和Int是 struct定义的,不同于NSString和NSNumber, 如果想在一个数组中同时包含String和Int,那么这个数组要声明为[Any] 而不是 [AnyObject] , 因为他们不是class!另外,与c中的string和int 不同,swfit中的是...
分类:
编程语言 时间:
2015-01-12 12:51:15
阅读次数:
159
//递归删除文件夹及子文件C#代码: public void DeleteFolder(string dir) { if (Directory.Exists(dir)) //如果存在这个文件夹删除之 { foreach (string d in Directory.GetFileS...