Quick sample project to show case the bug with a composite key and a part of it should be generated.
Was test using the latest version of Hibernate 5.4.0.CR2. Changing the @GeneratedValue from SEQUENCE to IDENDITY still make the same error.