incrementidentitysequencehiloseqhilouuidguiduses a database-generated GUID string on MS SQL Server and MySQL.
nativeselects identity, sequence or hilo depending upon the capabilities of the underlying database.
assignedselectforeignsequence-identityjvm에 있는 유니크 밸류와 quarter second, system time를 사용해서 만들고
맥주소나 메모리주소를 얻을수 없기에 jni(자바 네이티브 인터페이스)를 사용하지 않는 가장 좋은 옵션이다.
Example 1:
*
* @Id
* @GeneratedValue(strategy=SEQUENCE, generator="CUST_SEQ")
* @Column(name="CUST_ID")
'개발' 카테고리의 다른 글
| simpleframework 사용법 (0) | 2016.08.22 |
|---|---|
| 웹 로봇, 스파이더, 크롤러 robot.txt (0) | 2016.08.17 |
| maven 외부 jar 추가 (1) | 2016.08.11 |
| 웹페이지 한글 출력,servlet 한글 출력,물음표 표시 해결, 웹 브라우져에 따른 파라미터 처리,오라클 케릭터셋-2 (0) | 2016.07.06 |
| 톰켓 한글 setCharacterEncoding 안되는 이유, jsp,servlet 한글 인코딩 문제, 웹 브라우져에 따른 파라미터 처리방식-1 (0) | 2016.07.06 |