Announcement Announcement Module
Collapse
No announcement yet.
Unknown integral data type for ids : java.lang.String while creating DBRE Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    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, 06:27 AM.

  • #2
    As per https://jira.springsource.org/browse/ROO-2424, please try EclipseLink.

    Comment

    Working...
    X