With this code
entity Person {
id String
name String
post String
}
It will give me like
@Id
private String id;
@Field("name")
private String name;
@Field("post")
private String post;
but i want like
@Id
private String id;
@Field("name")
@Indexed(name = "name",unique = true)
private String name;
@Field("post")
private String post;
And this thing i have to do automatically, while importing jdl it should created automatically. How can i do that?
I read about custome annotation in jhipster but not getting how should i implement it.