Add and use temp_history_id_sequence to avoid release error (#795)

This commit is contained in:
Shicong Huang
2020-09-11 12:25:08 -04:00
committed by GitHub
parent f7b65327da
commit 5ab0f97351
7 changed files with 40 additions and 5 deletions
+4 -1
View File
@@ -11,7 +11,10 @@
</attributes>
</embeddable>
<sequence-generator name="HistorySequenceGenerator" sequence-name="history_id_sequence" />
<sequence-generator name="HistorySequenceGenerator" sequence-name="history_id_sequence"/>
<!-- TODO(shicong): Drop this sequence and change all history tables to use the above one. -->
<sequence-generator name="TempHistorySequenceGenerator" sequence-name="temp_history_id_sequence"/>
<persistence-unit-metadata>
<persistence-unit-defaults>