0 Replies Latest reply on Aug 29, 2007 6:02 PM by Derek Knotts

    Setting up an auto generated non-id column in JBoss

    Derek Knotts Newbie

      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;