连接数据库的一个框架,Orm框架的一种。一、下载:http://hibernate.org/二、配置:1、导入必须的包hibernate-release-4.3.5.Final\lib\required(必须的jar)如果需要时用annotataion的话,导入:hibernate-release-...
分类:
系统相关 时间:
2014-05-19 17:10:36
阅读次数:
498
注解映射必须满足两大条件:Hibernate3.2以上版本和JSEE 5。@Entity
类注释,所有要持久化的类都要有@Entitypublic class Orgimplements java.io.Serializable { }@Id
主键@Id@GeneratedValueprivate ...
分类:
系统相关 时间:
2014-05-19 07:52:44
阅读次数:
431
Subsequence
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 8128
Accepted: 3141
Description
A sequence of N positive integers (10 < N < 100 000), each of t...
分类:
其他好文 时间:
2014-05-18 15:26:37
阅读次数:
284
在一对一的关联映射中会有一种特殊的情况就是一个表的主键同时也是一个表的外键,也就是说一个字段是同是主键和外键,并且该外键唯一对应着另一张表的一行,它们两个是唯一对应的关系,反应到对象模型中它们之间属于一种一对一的引用关系,一个对象的属性是另外一个对象的属性值...
分类:
系统相关 时间:
2014-05-18 15:04:06
阅读次数:
364
Hibernate3.3.2+Spring2.5.5+Struts2.1.6+Extjs3.0.0 Annotations注解框架整合及其代码分享,代码下载地址:http://www.zuidaima.com/share/1780237805931520.htm...
分类:
编程语言 时间:
2014-05-18 08:48:07
阅读次数:
505
public List queryBySqlMap(String asql) {
final String sql = asql;
List lst = getHibernateTemplate().executeFind( new HibernateCallback() {
public Object doInHi...
分类:
数据库 时间:
2014-05-18 08:07:09
阅读次数:
378
题目:
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
Clarification:
What constitutes a word?
A sequence of non-spa...
分类:
其他好文 时间:
2014-05-18 04:12:07
阅读次数:
198
Given an unsorted array of integers, find the
length of the longest consecutive elements sequence.For example,Given[100, 4,
200, 1, 3, 2],The longest ...
分类:
其他好文 时间:
2014-05-18 01:52:45
阅读次数:
317
控制焦点Focus on Control 的取值:Alternative
fragment(denoted “alt”) 与 if…then…else对应Option fragment (denoted “opt”) 与
Switch对应Parallel fragment (denoted “par...
分类:
其他好文 时间:
2014-05-17 22:05:02
阅读次数:
298
Myeclipse6.0的hibernate反向工程第一步:建DBBrowser方法一:Window->OpenPersipective->MyEclipseDatabaseExplorer以后步骤同二方法二:window/showview/other选择如下图最后,点击OK,在工作空间上将会出现一...
分类:
系统相关 时间:
2014-05-17 19:59:07
阅读次数:
317