0 Replies Latest reply on Jun 18, 2007 6:08 PM by Glenn Silverman

    help with seam generate-entities and enum fields

    Glenn Silverman Newbie

      When I run seam generate-entities on a project using an existing mysql database with enum fields in the tables, they get converted to String types
      in the generated beans. And, if I drop-create the tables on deployment, the enum fields become varchar(n) types. Is there any way to preserve the enum types, or do I have to add the enum types in the beans and convert all the String types to my enum types in the code with the @Enumeration annotation?