I am trying to set up a non-id column in my project that is auto generated, but it doesn't seem to be working with JBoss. I am posting my code below to show what I am trying to do. Can anyone tell me how to do this, please?
Thanks,
D
@Id
@SearchableId
@Column(name = "sysId")
private String sysId = UUID.randomUUID().toString();
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "number")
private int number;