Got JPAs working - the problem? The stupid primary key was defined as a String. DUH! Should have been Long