coner-tech / coner-core

DEPRECATED A REST API for autocross event operations
GNU Affero General Public License v3.0
7 stars 3 forks source link

RunDao / RunHibernateEntity don't actually enforce the unique constraint "events_sequences" (event_id, sequence) #181

Open carltonwhitehead opened 7 years ago

carltonwhitehead commented 7 years ago

Inserting two runs with the same event and sequence should cause a constraint violation. Instead, no violation seems to occur, and both records are inserted successfully.

See RunDaoTest.itShouldThrowWhenEventAndSequenceNotUnique()