Hibernate: Store Enum as String

July 19th, 2009 by jeremychone

Just add the @Enumerated(EnumType.STRING)

@Enumerated(EnumType.STRING)
public Type getType() {
    return type;
}

Leave a Reply