0 Replies Latest reply on Feb 4, 2007 5:12 AM by rajuanye

    Enum as ID

    rajuanye

      I want to map a table when ID is also an Enum:
      code example:
      @Id
      @Column(name="Parameter_Name")
      @Enumerated (value=EnumType.STRING)

      I get :
      org.hibernate.type.SerializationException: could not deserialize

      what should I do ,that I will have ID which is also an enum

      thanks in advance :)