Hi,
I'm facing the same problem, trying to save a a new object with an embbed enum and using a simple repository :
Code:@Document(collection="adjective") public class Adjective { @Id @NotNull private String id ; @NotNull private AdjectiveType type ; //getter setter... } public enum AdjectiveType { POSITIVE, NEGATIVE; }I get the same error doing the following:Code:public interface AdjectiveRepository extends MongoRepository<Adjective, String> { }
Any workaround ?Code:... adjectiveRepository.save(myNewAdjective);
Thanks for your time


Reply With Quote