Enterprise Java Development@TOPIC@

Purpose

GeneratedValue strategy change from IDENTITY to SEQUENCE

This exercise makes use of the AUTO GeneratedValue strategy and was originally authored when that strategy was IDENTITY. As of 2018 using H2, the strategy resolves SEQUENCE. That means that there will be an additional set of calls to "next value" and database rows may be delayed in their insertion. Simply add an em.flush() to force the insert of any new rows where there is a confusing mis-match between the instructions and your observed output. This should be another reminder to not leverage the AUTO strategy -- since it can change over time.