![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
文章平均质量分 80
iteye_9496
这个作者很懒,什么都没留下…
展开
-
jee6 学习笔记 4 - CRUD 1: Primefaces datatable, sorting and paging
实现简单的搜索功能:搜索学生姓名,同时利用primefaces datatable来显示结果。screenshot: (Note, i've changed the theme from "sam" to "afterwork")[img]http://dl.iteye.com/upload/attachment/0070/4904/d336d53c-9c72-371a-8a9c-...原创 2012-07-09 11:21:12 · 138 阅读 · 0 评论 -
JPA native query does not support setting list parameters
you might want to do the following highlighted code as: whereClause.append("f.id IN (:fleetIdsList)"); ..... query.setParameter("fleetIdsList", fleetIdsList); B...原创 2014-03-27 06:45:54 · 176 阅读 · 0 评论 -
java ee transaction and datasource concepts
1. What is a transaction?A transaction groups units of work and save the them all at once, or at any failure, roll back all the changes.2. What are the features of a transaction?ACID: Atomicit...2012-11-10 13:48:27 · 84 阅读 · 0 评论 -
Handle Big Dataset with Real Pagination with Primefaces 3.3 LazyDataModel
If you have millions of records in your database, you would like to use real pagination to provide viewing of the data. By "real" (or true or proper, whatever) pagination, it means that the searching...2012-09-21 13:41:40 · 191 阅读 · 0 评论 -
why Oracle sequence not working with JPA entity ID?
Suppose you have an Oracle sequence defined as following: CREATE SEQUENCE BILLING.SEQ_ACTVID START WITH 300060 INCREMENT BY 1 NOMINVALUE NOMAXVALUE NOCYCLE NOORDER CACHE 20; ...2012-09-19 08:08:18 · 67 阅读 · 0 评论 -
JEE6/JSF2.0 error messages, bean validation and i18n
With JEE6/JSF2.0, validation can be done by bean validation annotations. these annotations can be put on the JEE6 entity beans OR managed backing beans, as long as they conform to the Java Bean requi...2012-09-15 12:14:59 · 156 阅读 · 0 评论 -
jee6 学习笔记 12: Securing Application Component with JAAS api
In "jee6 学习笔记 11", we explored the JAAS configuration for a JSF2.0 application with JBoss7.1, so far so good. This article would explore the JAAS APIs that enable further control on application c...2012-09-03 12:17:37 · 89 阅读 · 0 评论 -
jee6 学习笔记 4 - CRUD 3 (finally): Update and Add New
Add new/Update/View Details can be combined altogether into one single screen. This results in the CRUD operations to only two screens. The search screen has the "delete" action as the last column of ...原创 2012-07-16 11:19:41 · 102 阅读 · 0 评论 -
jee6 学习笔记 4 - JSF2 Ajax Basic
JSF 2 has Ajax built in, lets take a look at how it works.the tag (all attributes optional): use case: user input a message, an output field renders the message vi ajax call to server side bac...原创 2012-07-10 08:43:25 · 94 阅读 · 0 评论 -
JPA Path Expression, operator IN and Collection properties
If we want to select the Orders whose price is greate than 100, we can use this JPQL query: select o from Order o where o.price > 100Here "o.price" is used to refer to the property "price" ...2013-01-23 16:25:29 · 536 阅读 · 0 评论