2014 年文章归档
共 61 篇文章
Hibernate一对一映射配置详解
一对一关联分为主键关联与外键关联。 主键关联:不必加额外的字段,只是主表和辅表的主键相关联,即这两个主键的值是一样的。 外键关联:辅表有一个额外的字段和主表相关联,或者两个表都有额外的字段与对应表的相关联。 一、xml文件配置 官方文档解释 <one-to-one name="propertyName" (1) class="ClassName" (2) cascade="cascade_style" (3) constrained="true|false" (4) fetch="join|select" (5) property-ref="propertyNameFromAssociate…
2014-12-05 09:31 · hibernate3.3.2
MyEclipse maven3插件安装
下载插件:http://download.csdn.net/download/piaoyingfeimeng/5831015 在eclipse里下新建links文件夹,在links里新建一个xxx.link xxx里写上path=D://Program Files (x86)//MyEclipse 6.5//eclipse//plugins//eclipse-maven3-plugin//maven 而我的maven插件就在D:\Program Files (x86)\MyEclipse 6.5\eclipse\plugins下
2014-07-30 15:43 · 开发工具
maven的聚合和继续
聚合 聚合项目中的 pom.xml文件 <packaging>pom</packaging>规定必须是pom 该聚合项目的pom.xml文件相对被聚合项目的位置 <modules> <module>../user-core</module> <module>../user-dao</module> <module>../user-log</module> <module>../user-service</module> </modules> 继承 对于依赖的继承而言,都需要通过dependencyManagement来完成管理, <dependencyManagement> <depende…
2014-07-28 17:58 · maven
maven的依赖
1、所有的依赖都是通过坐标来进行存储的(GAV-->groupId、artifactId、version) 2、有一些网上的仓库提供了坐标的查询( http://mvnrepository.com ) 3、通过<dependencies>设置依赖 <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> 4、maven是如何搜索依赖的?…
2014-07-28 17:06 · maven
maven的初步
下载maven的3.0.4版本 设置环境变量中的path 修改maven目录下的conf中的setting.xml <localRepository>e:/mavenRepository</localRepository>制定本地仓库的位置 pom.xml介绍: <modelVersion>4.0.0</modelVersion>模型的版本,固定的值4.0.0 <groupId>com.paxsz.cpos</groupId>表示项目的名称,一般用 公司名称+项目名称,其实就是包名 <artifactId>cpos-parent</artifactId>表示项目的模块名称 <version>…
2014-07-28 12:04 · maven
使用Spring的JdbcTemplate调用Oracle的存储过程
Spring的SimpleJdbcTemplate将存储过程的调用进行了良好的封装,但可惜只能用于jdk1.5的环境,无法再jdk1.4环境下使用,而JdbcTemplate则完全适用于jdk1.4下的环境,下面列出使用JdbcTemplate调用Oracle存储过程的一些方法: 一) 无返回值的存储过程调用 存储过程: CREATE OR REPLACE PROCEDURE TESTPRO(PARAM1 IN VARCHAR2,PARAM2 IN VARCHAR2) AS BEGIN INSERT INTO TESTTABLE (ID,NAME) VALUES (PARAM1, PARAM…
2014-07-10 09:25 · spring
http协议 文件下载原理及多线程断点续传
最近研究了一下关于文件下载的相关内容,觉得还是写些东西记下来比较好。起初只是想研究研究,但后来发现写个可重用性比较高的模块还是很有必要的,我想这也是大多数开发人员的习惯吧。 对于HTTP协议,向服务器请求某个文件时,只要发送类似如下的请求即可: GET /Path/FileName HTTP/1.0 Host: www.server.com:80 Accept: */* User-Agent: GeneralDownloadApplication Connection: close 每行用一个“回车换行”分隔,末尾再追加一个“回车换行”作为整个请求的结束。 第一行中的GET是HTTP协议支持…
2014-06-18 17:28 · java
propertygrid--1
{"total":4,"rows":[ {"name":"Name","value":"Bill Smith","group":"ID Settings","editor":"text"}, {"name":"Address","value":"","group":"ID Settings","editor":"text"}, {"name":"SSN","value":"123-456-7890","group":"ID Settings","editor":"text"}, {"name":"Email","value":" bill@gmail.com","group":"Market…
2014-06-18 17:28 · jquery-easyui-1.2.6
combogrid--1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!-- easyui的样式 --> <link rel=…
2014-06-17 11:18 · jquery-easyui-1.2.6
combotree--2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!-- easyui的样式 --> <link rel=…
2014-06-17 11:18 · jquery-easyui-1.2.6
combotree--1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!-- easyui的样式 --> <link rel=…
2014-06-17 11:18 · jquery-easyui-1.2.6
combobox--5
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!-- easyui的样式 --> <link rel=…
2014-06-17 11:18 · jquery-easyui-1.2.6
combobox--4
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!-- easyui的样式 --> <link rel=…
2014-06-17 11:17 · jquery-easyui-1.2.6
combobox--3
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!-- easyui的样式 --> <link rel=…
2014-06-16 10:32 · jquery-easyui-1.2.6
combobox--2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!-- easyui的样式 --> <link rel=…
2014-06-16 10:28 · jquery-easyui-1.2.6
combobox--1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>1.html</title> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!-- ea…
2014-06-16 10:22 · jquery-easyui-1.2.6
combo--2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>1.html</title> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!-- ea…
2014-06-16 10:02 · jquery-easyui-1.2.6
combo--1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>1.html</title> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!-- ea…
2014-06-16 10:00 · jquery-easyui-1.2.6
datagrid--5 一些小的功能
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!-- easyui的样式 --> <link rel=…
2014-05-19 14:15 · jquery-easyui-1.2.6
datagrid--4 行编辑模式
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!-- easyui的样式 --> <link rel=…
2014-05-19 10:24 · jquery-easyui-1.2.6