일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- Apache Lucene
- MS-SQL
- STS
- varags
- Web Service
- Maven
- scrollView
- Android
- Java
- 자바
- 자바스크립트
- html
- Bootstrap
- TextBox
- jsp
- MSsql
- Redirect
- asp.net
- decompiler
- javascript
- SpringSource Tool Suite
- WebView
- C#
- 컬럼명
- 이클립스
- MANTIS
- Eclipse
- 웹 서비스
- 웹뷰
- 안드로이드
- Today
- Total
목록2013/03 (2)
bboks.net™
Hibernate를 사용하다보면 Criteria를 재사용할 상황이 가끔 생긴다. 예를 들면 Paging과 같은 nHibernate에는 CriteriaTransformer(?)에서 지원을 하는 것 같은데 hibernate에서는 없는 것 같음 이를 우회하는 방법은 criteria의 projection을 초기화하고 다시 세팅하는 방법이 있다. ProjectionList projectionList = Projections.projectionList(); //전체 개수를 가져옴 int totalCount = Integer.parseInt(criteria.setProjection(Projections.rowCount()).list().get(0).toString()); //criteria 재사용을 위해 projec..
ValidatorjQuery.validator.addMethod( "regex", function(value, element, regexp) { if (regexp.constructor != RegExp) regexp = new RegExp(regexp); else if (regexp.global) regexp.lastIndex = 0; return this.optional(element) || regexp.test(value);}, "검증 실패 메세지"); Validate$("#form_id").validate({ rules : { name : { required : true }, code : {required : false, regex : "^[cC][a-zA-Z0-9]{5}$"} }, submitH..