jpa enum as string

Solutions on MaxInterview for jpa enum as string by the best coders in the world

showing results for - "jpa enum as string"
Amelie
31 Jun 2016
1@Entity
2public class Article {
3    @Id
4    private int id;
5
6    private String title;
7
8    @Enumerated(EnumType.ORDINAL)
9    private Status status;
10
11    @Enumerated(EnumType.STRING)
12    private Type type;
13}