Results 1 to 2 of 2

Thread: Unknown integral data type for ids : java.lang.String while creating DBRE

  1. #1
    Join Date
    May 2010
    Posts
    9

    Default Unknown integral data type for ids : java.lang.String

    Hi,

    I am using Spring Roo 1.2.2 Release version. Created domain class using DBRE. Getting below exception when try to save data.

    org.springframework.orm.jpa.JpaSystemException: org.hibernate.id.IdentifierGenerationException: Unknown integral data type for ids : java.lang.String; nested exception is javax.persistence.PersistenceException: org.hibernate.id.IdentifierGenerationException: Unknown integral data type for ids : java.lang.String

    As per the Bug https://jira.springsource.org/browse/ROO-1040, i have commented // @GeneratedValue(strategy = GenerationType.AUTO) and added below code in Domain class.

    @PrePersist
    public void generateAreaKey() {
    setAreaKey(java.util.UUID.randomUUID().toString()) ;
    }


    But the data is not persisted into DB. Seems that this workaround is not perfect one. Please let me know how to resolve the issue.

    Thanks,
    Last edited by mkandrat; Oct 16th, 2012 at 06:27 AM.

  2. #2
    Join Date
    Dec 2005
    Posts
    929

    Default

    As per https://jira.springsource.org/browse/ROO-2424, please try EclipseLink.
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •