문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
java:hibernate:id_generator [2018/07/11 14:12] kwon37xi [Sequence] |
java:hibernate:id_generator [2018/10/01 12:29] kwon37xi [hibernate.id.new_generator_mappings] |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Hibernate Primary Key (ID) Generator ====== | ====== Hibernate Primary Key (ID) Generator ====== | ||
+ | * [[https:// | ||
* [[https:// | * [[https:// | ||
===== hibernate.id.new_generator_mappings ===== | ===== hibernate.id.new_generator_mappings ===== | ||
- | * 최신버전에서는 '' | + | * 최신버전에서는 '' |
+ | * 구버전과의 호환성을 위한 것이 아니면 이 값을 **항상 '' | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[https:// | ||
===== 기본 Custom Generator들 ===== | ===== 기본 Custom Generator들 ===== | ||
줄 46: | 줄 49: | ||
public class EntityWithTableId { | public class EntityWithTableId { | ||
@GeneratedValue(strategy=GenerationType.TABLE, | @GeneratedValue(strategy=GenerationType.TABLE, | ||
- | @Id long id; | + | @Id Long id; |
} | } | ||
</ | </ | ||
줄 96: | 줄 99: | ||
} | } | ||
</ | </ | ||
- | * [[https:// | + | * '' |