Skip to content

Commit 1fc8b64

Browse files
Composite key and sequence generation
1 parent 6f54a7a commit 1fc8b64

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
[![HitCount](http://hits.dwyl.io/AnghelLeonard/Hibernate-SpringBoot.svg)](http://hits.dwyl.io/AnghelLeonard/Hibernate-SpringBoot)
21
[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Collection%20of%20best%20practices%20for%20Java%20persistence%20performance%20in%20Spring%20Boot%20applications&url=https://github.com/AnghelLeonard/Hibernate-SpringBoot&hashtags=springdata,hibernate,jpa,springboot)
32

43
# Best Performance Practices Hibernate 5/6 & Spring Boot 2
@@ -4091,3 +4090,12 @@ From Openjdk JEP359:
40914090
- *Transaction (B)* wakes up and attempt to update the author but it cannot acquire the lock holded by *Transaction (A)*
40924091
- DEADLOCK
40934092
- database retry and succeeds after *Transaction (B)* releases the lock
4093+
4094+
-----------------------------------------------------------------------------------------------------------------------
4095+
4096+
279. **[How To Define A Composite Primary Key Having An Explicit Part and a Generated Part Via Sequence](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootCompositeKeySeqIdClass)**
4097+
4098+
**Description:** This application is a proof of concept of how to define a composite key having an explicit part (`name`) and a generated part (`authorId` via `SEQUENCE` generator).
4099+
4100+
**Key points:**
4101+
- use `@IdClass`

0 commit comments

Comments
 (0)