I have to generate an auto increment of type "000"+id
, but I can not get to something concrete, my base is this below, I just wanted a light how to do it, I do not need the answer itself. >
@Id
@GeneratedValue
@Column(name = "id", nullable = false)
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}