君子博学而日参省乎己 则知明而行无过矣

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 84 85 86 87 88 89 90 91 92 ··· 106 下一页

2012年4月27日 #

摘要: 这里记录hibernate中组合主键的annotation方式。hibernate-annotations说明文档中有说到组合主键使用annotation的方式实现,如下几种下面是定义组合主键的几种语法:1. 将组件类注解为@Embeddable,并将组件的属性注解为@Id2. 将组件的属性注解为@EmbeddedId3. 将类注解为@IdClass,并将该实体中所有属于主键的属性都注解为@Id第一种方式实例:1.主键类,如下package com.seed.lee.model;import javax.persistence.Column;import javax.persistence.E 阅读全文
posted @ 2012-04-27 23:10 刺猬的温驯 阅读(1460) 评论(0) 推荐(0) 编辑

2012年4月26日 #

摘要: Hibernate是一种强大的可提供对象-关系持久化和查询服务的中间件,它可以使程序员依据面向对象的原理开发持久化类,实现对象之间的关联、继承、多态、组合、集合等。Hibernate提供了它特有的数据库查询语言HQL,这种查询语言屏蔽了不同数据库之间的差别,使你可以编写统一的查询语句执行查询。不同于其他持久化解决方案的是Hibernate并没有把SQL的强大功能屏蔽掉,而是仍然兼容SQL,这使你以往的关系技术依然有效。一、Hibernate的版本更新情况Hibernate版本更新速度很快,目前为止有两个阶段性的版本:Hibernate2和Hibernate3,这一点程序员从其Jar文件名便可以 阅读全文
posted @ 2012-04-26 02:46 刺猬的温驯 阅读(265) 评论(0) 推荐(0) 编辑

2012年4月25日 #

摘要: This note demonstrates how to create and deploy an MDP, and how to control it, using both Spring’s inbuilt component management mechanisms, and JMX.ScenarioWe have a number of JMS listeners in our application. Having ported our hardware to a grid of virtual machines, we want the feature to switch-on 阅读全文
posted @ 2012-04-25 17:26 刺猬的温驯 阅读(277) 评论(0) 推荐(0) 编辑

摘要: Spring 3.1 M1 is out with some veryuseful features. One of the coolest feature in the latest release is comprehensive Caching support!Spring Framework provides support for transparently adding caching into an existing Spring application. Similar to the transaction support, the caching abstraction al 阅读全文
posted @ 2012-04-25 17:24 刺猬的温驯 阅读(451) 评论(0) 推荐(0) 编辑

摘要: 从 iBatis 到 MyBatis,你准备好了吗?对于从事 Java EE 的开发人员来说,iBatis 是一个再熟悉不过的持久层框架了,在 Hibernate、JPA 这样的一站式对象 / 关系映射(O/R Mapping)解决方案盛行之前,iBaits 基本是持久层框架的不二选择。即使在持久层框架层出不穷的今天,iBatis 凭借着易学易用、轻巧灵活等特点,也仍然拥有一席之地。尤其对于擅长 SQL 的开发人员来说,iBatis 对 SQL 和存储过程的直接支持能够让他们在获得 iBatis 封装优势的同时而不丧失 SQL 调优的手段,这是 Hibernate/JPA 所无法比拟的。具体而 阅读全文
posted @ 2012-04-25 15:44 刺猬的温驯 阅读(449) 评论(0) 推荐(0) 编辑

摘要: Let us make a complete end-to-end application using Spring 3.0 MVC as front end technology and Hibernate as backend ORM technology. For this application we will also use Maven for build and dependency management and MySQL as database to persist the data.The application will be a simple Contact Manag 阅读全文
posted @ 2012-04-25 12:25 刺猬的温驯 阅读(1052) 评论(0) 推荐(0) 编辑

2012年4月24日 #

摘要: 这是我一些常用的开发工具,主要用来做web开发,绝大部分都是开源的,这里做出一个列表并给出评论和网址,以后逐步充实完善本人Java初学者,水平实在有限,如有错误之处,请来信告知,感激不尽JDK说明:Java软件开发工具箱网址:http://java.sun.com相关资源推荐:必备Eclipse说明:目前最为流行的跨平台JAVA集成开发环境,扩展性极高,很多插件可用完全用Java开发,无需安装,方便平台的迁移我目前用的Eclipse已经维护了两年多,其间重装系统无数次,Eclipse的个人配置和插件却无需重装,非常方便网址:http://www.eclipse.org相关资源推荐:吐血推荐,都 阅读全文
posted @ 2012-04-24 22:15 刺猬的温驯 阅读(498) 评论(0) 推荐(0) 编辑

摘要: SpringMVC与Hibernate整合配置Spring3.0Hibernate3.0web.xml<?xml version="1.0" encoding="UTF-8"?><web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://j 阅读全文
posted @ 2012-04-24 04:20 刺猬的温驯 阅读(1341) 评论(0) 推荐(0) 编辑

摘要: This tutorial explains how to use annotations with spring 3 MVC and hibernate 3 based application to make the development easier and faster than ever before.ArticleService.javaThis is the interface which declares methods which will be used in controller class.packagenet.roseindia.service;importjava. 阅读全文
posted @ 2012-04-24 04:09 刺猬的温驯 阅读(338) 评论(0) 推荐(0) 编辑

摘要: This tutorial explains how to use annotations with spring 3 MVC and hibernate 3 based application to make the development easier and faster than ever before.dispatcher-servlet.xml:<context:property-placeholder>element specifies the location where to find the properties file. In our case it is 阅读全文
posted @ 2012-04-24 04:07 刺猬的温驯 阅读(320) 评论(0) 推荐(0) 编辑

上一页 1 ··· 84 85 86 87 88 89 90 91 92 ··· 106 下一页