Replace nextval with JPA TableGenerator

* Fixes failing tests.
Added @Transactional to AbstractControllerTest

* Fixes failing BucketsControllerTest due to tests modifying data
required by subsequent test.