The tense relationship between JPA, enums and generics