[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-1180) @TableGenerator initialValue

john iakovides (JIRA) jira-events at lists.jboss.org
Fri Jan 18 05:08:26 EST 2008


@TableGenerator initialValue
----------------------------

                 Key: EJBTHREE-1180
                 URL: http://jira.jboss.com/jira/browse/EJBTHREE-1180
             Project: EJB 3.0
          Issue Type: Bug
          Components: EJB3 Extensions
         Environment: windows XP ; mysql 5; jboss-4.0.4GA
            Reporter: john iakovides


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;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list