问题 I want to be able to map a enum declared in java to an enum created in postgres. For example having the following: CREATE TYPE EYE_COLOR AS ENUM ('BROWN', 'BLUE', 'GREEN'); CREATE TABLE PERSON ( ID INT PRIMARY KEY AUTO_INCREMENT, NAME NVARCHAR2(128) NOT NULL, EYE EYE_COLOR ); In java I have something like this: public enum EyeColor { BROWN, BLUE, GREEN } public class Person { @Id Long id; String name; EyeColor eye; } When I try to do save something to the database like this: personRepository