-
Oct 16th, 2012, 05:59 AM
#1
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.
-
Oct 17th, 2012, 05:38 AM
#2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules