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

博客园 首页 新随笔 联系 订阅 管理

2013年6月19日 #

摘要: Solris an open source search server which is built by using the indexing and search capabilities ofLucene Core, and it can be used for implementing scalable search engines with almost any programming language.Even though Solr has many advantages, setting up a a development environment is not one of 阅读全文
posted @ 2013-06-19 12:29 刺猬的温驯 阅读(2746) 评论(0) 推荐(0) 编辑

摘要: This is the ninth and the last part of mySpring Data JPA tutorial. Now it is time to take a look of what we have learned, and how we should use it to build better software.Table of ContentsThe contents of my Spring Data JPA tutorial is given in following:Part One: ConfigurationPart Two: CRUDPart Thr 阅读全文
posted @ 2013-06-19 11:55 刺猬的温驯 阅读(1059) 评论(0) 推荐(0) 编辑

摘要: The previous part of my tutorial describedhow you can paginate query results with Spring Data JPA. The example application of this blog entry has the same functional requirements, but it will use Querydsl instead of JPA criteria API. This blog entry assumes that you have got experience from both Que 阅读全文
posted @ 2013-06-19 11:54 刺猬的温驯 阅读(2027) 评论(0) 推荐(0) 编辑

摘要: The previous part of mySpring Data JPA tutorialdescribed how you can sort query results with Spring Data JPA. This blog entry will describe how you can paginate the query results by using Spring Data JPA. In order to demonstrate the pagination support of Spring Data JPA, I will add two new requireme 阅读全文
posted @ 2013-06-19 11:53 刺猬的温驯 阅读(5231) 评论(0) 推荐(0) 编辑

摘要: The fifth part of mySpring Data JPA tutorialdescribed how you cancreate advanced queries with Spring Data JPA and Querydsl. This blog entry will describe how you can use Spring Data JPA for sorting the query results. As an example I will be adding two new requirements for my example application:The 阅读全文
posted @ 2013-06-19 11:52 刺猬的温驯 阅读(5624) 评论(0) 推荐(0) 编辑

摘要: The fourth part of mySpring Data JPA tutorialdescribed how you can implement more advanced queries with the JPA criteria API. As you might remember, the goal of the previous part of this tutorial was to implement a search function which returns only such persons whose last name begins with the given 阅读全文
posted @ 2013-06-19 08:39 刺猬的温驯 阅读(7674) 评论(0) 推荐(0) 编辑

摘要: The third part of mySpring Data JPA tutorialdescribedhow you can create custom queries by using query methods. This blog entry will describe how you can implement more advanced queries by using the JPA criteria API.If you have read the previous part of this tutorial, you might remember that the sear 阅读全文
posted @ 2013-06-19 08:38 刺猬的温驯 阅读(10141) 评论(0) 推荐(0) 编辑

摘要: 在本人的Spring Data JPA教程的第二部分描述了如何用Spring Data JPA创建一个简单的CRUD应用,本博文将描述如何在Spring Data JPA中使用query方法创建自定义查询,为了有一个合理的示例,我为我的应用创建了三个要求:实现通过他们的last name作为搜索条件搜索到person.搜索功能必须返回这样的person,它们的last name准确匹配搜索条件。搜索不区分大小写.现在开始扩展示例应用.所需步骤完成要求的步骤如下:创建一个query方法.使用该创建的query方法.Spring Data JPA提供了三种query方法的不同方式来创建自定义查询, 阅读全文
posted @ 2013-06-19 08:37 刺猬的温驯 阅读(21517) 评论(3) 推荐(0) 编辑

摘要: 我的Spring Data Jpa教程的第一部分描述了,如何配置Spring Data JPA,本博文进一步描述怎样使用Spring Data JPA创建一个简单的CRUD应用。该应用要求如下:person 必须有 first name 和 last name. 这两者是强制的.能够列出所有persons.能够添加新的persons.能够编辑已存在的persons的信息.能够删除persons.现在我已经描述了创建的应用的要求,现在开始工作并实现它。所需步骤CRUD应用的实现可以分割成如下步骤:实现Person 模型对象为Person 对象创建repository使用创建的repository 阅读全文
posted @ 2013-06-19 07:53 刺猬的温驯 阅读(16725) 评论(2) 推荐(2) 编辑

摘要: Spring Data JPA项目旨在简化基于仓库的JPA的创建并减少与数据库交互的所需的代码量。本人在自己的工作和个人爱好项目中已经使用一段时间,它却是是事情如此简单和清洗,现在是时候与你分享我的知识。本文是我的Spring Data JPA教程的第一部分,将向你描述的是,当你使用Hibernate作为你的jpa提供者时怎样配置Spring Data JPA,在我们开始之前,首先应该明白一件事情,本教程不是Hibernate, JPA 或 Spring的人们教程,如果你想理解在我的Spring Data JPA教程中描述的概念,你必须有关于这些技术方面的经验本教程的依赖如下:BoneCP 0 阅读全文
posted @ 2013-06-19 06:37 刺猬的温驯 阅读(12537) 评论(0) 推荐(0) 编辑

摘要: 写那些数据挖掘之类的博文 写的比较累了,现在翻译一下关于spring data jpa的文章,觉得轻松多了。翻译正文:你有木有注意到,使用Java持久化的API的数据访问代码包含了很多不必要的模式代码?即使你执行一个简单的查询也同样如此,如果你编写动态的查询或实现分页,则情况会更糟。Spring D... 阅读全文
posted @ 2013-06-19 05:34 刺猬的温驯 阅读(11338) 评论(0) 推荐(2) 编辑