Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1180

@TableGenerator initialValue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • AS 4.2.1.GA
    • EJB3 Extensions
    • None

      Initial value does not seem to work under mysql.

      @Table(name = "esender_mail")
      @TableGenerator (name="esender_mail_id_gen",
      table="generated_ids",
      pkColumnName="GEN_KEY",
      valueColumnName="GEN_VALUE",
      pkColumnValue="esender_mail",
      initialValue=100,
      allocationSize=1)

      @Id
      @GeneratedValue(generator ="esender_mail_id_gen", strategy = GenerationType.TABLE)
      @Column(name = "mail_id", nullable = false)
      private Integer mailId;

              rhn-engineering-ebernard Emmanuel Bernard
              jb_johan john iakovides (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated: