일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- jQueryUI
- 제너릭
- fetchjoin
- 자바서블릿
- fullcalendar
- JPQL
- JQuery
- joinfetch
- Hibernate
- LIST
- 페치조인
- values()
- Generic
- jscalendar
- jQuery값전송
- paging
- 스프링데이터흐름
- 페이징
- springflow
- javaservlet
- JPA
- jQuery값전달
- 대량쿼리
- namedQuery
- 제네릭
- calendar
- 벌크연산
- 프로젝트생성
- javascriptcalendar
- 엔티티직접사용
- Today
- Total
가자공부하러!
Hibernate에서 uuid와 uuid2의 차이점(스크랩) 본문
원문 : https://docs.jboss.org/hibernate/core/3.6/reference/en-US/html/mapping.html#d0e5294
결론 : uuid는 RFC 4122 호환안됨 -> warn로그 쌓임
또다른 이유가 있을듯함
Generates a 128-bit UUID based on a custom algorithm. The value generated is represented as a string of 32 hexidecimal digits. Users can also configure it to use a separator (config parameter "separator") which separates the hexidecimal digits into 8{sep}8{sep}4{sep}8{sep}4. Note specifically that this is different than the IETF RFC 4122 representation of 8-4-4-4-12. If you need RFC 4122 compliant UUIDs, consider using "uuid2" generator discussed below.
Generates a IETF RFC 4122 compliant (variant 2) 128-bit UUID. The exact "version" (the RFC term) generated depends on the pluggable "generation strategy" used (see below). Capable of generating values as java.util.UUID, java.lang.String or as a byte array of length 16 (byte[16]). The "generation strategy" is defined by the interface org.hibernate.id.UUIDGenerationStrategy. The generator defines 2 configuration parameters for defining which generation strategy to use:
Names the UUIDGenerationStrategy class to use
Names the UUIDGenerationStrategy instance to use
Out of the box, comes with the following strategies:
-
org.hibernate.id.uuid.StandardRandomStrategy (the default) - generates "version 3" (aka, "random") UUID values via the randomUUID method of java.util.UUID
-
org.hibernate.id.uuid.CustomVersionOneStrategy - generates "version 1" UUID values, using IP address since mac address not available. If you need mac address to be used, consider leveraging one of the existing third party UUID generators which sniff out mac address and integrating it via the org.hibernate.id.UUIDGenerationStrategy contract. Two such libraries known at time of this writing include http://johannburkard.de/software/uuid/ and http://commons.apache.org/sandbox/id/uuid.html
'공부 > Java' 카테고리의 다른 글
모던자바인액션(CH11) - Optional (0) | 2020.07.22 |
---|---|
모던자바인액션(CH10) - 람다를 이용한 도메인 전용 언어(DSL) (0) | 2020.06.24 |
모던자바인액션(CH9) - 스트림과 람다 활용(2) (0) | 2020.06.13 |
모던자바인액션(CH8) - 스트림과 람다 활용(1) (0) | 2020.06.07 |
모던자바인액션(CH7) - 스트림(4) (0) | 2020.06.03 |