{"action":"created","issue":{"url":"https://api.github.com/repos/grails/gorm-hibernate5/issues/32","repository_url":"https://api.github.com/repos/grails/gorm-hibernate5","labels_url":"https://api.github.com/repos/grails/gorm-hibernate5/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/grails/gorm-hibernate5/issues/32/comments","events_url":"https://api.github.com/repos/grails/gorm-hibernate5/issues/32/events","html_url":"https://github.com/grails/gorm-hibernate5/issues/32","id":225452796,"number":32,"title":"gorm unique Constraints throw exception?","user":{"login":"xp13910818313","id":11690092,"avatar_url":"https://avatars0.githubusercontent.com/u/11690092?v=3","gravatar_id":"","url":"https://api.github.com/users/xp13910818313","html_url":"https://github.com/xp13910818313","followers_url":"https://api.github.com/users/xp13910818313/followers","following_url":"https://api.github.com/users/xp13910818313/following{/other_user}","gists_url":"https://api.github.com/users/xp13910818313/gists{/gist_id}","starred_url":"https://api.github.com/users/xp13910818313/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xp13910818313/subscriptions","organizations_url":"https://api.github.com/users/xp13910818313/orgs","repos_url":"https://api.github.com/users/xp13910818313/repos","events_url":"https://api.github.com/users/xp13910818313/events{/privacy}","received_events_url":"https://api.github.com/users/xp13910818313/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-05-01T15:16:58Z","updated_at":"2017-05-04T10:13:04Z","closed_at":null,"body":"using gorm-hibernate5-spring-boot 6.0.7.RELEASE & grails-datastore-gorm 6.0.7.RELEASE in spring boot project.\r\napplication.yml config: \r\n```\r\ngrails.gorm.failOnError: false\r\ngrails.gorm.autoFlush: false\r\n```\r\nDomain class :\r\n```\r\n@Entity\r\nclass Book implements GormEntity<Book> {\r\n    String title\r\n    static constraints = {\r\n        title (nullable: false,size: 0..200, unique: true, blank:false)\r\n    }\r\n}\r\n```\r\ncontroller : \r\n```\r\n        def book1=new Book(title: \"one\");\r\n        book1.save()\r\n        def book2=new Book(title: \"one\");\r\n        book2.save()\r\n        println book2.errors\r\n```\r\napplication throw exception:\r\n```\r\norg.h2.jdbc.JdbcSQLException: Unique index or primary key violation: \"UK_G0286AG1DLT4473ST1UGEMD0M_INDEX_1 ON PUBLIC.BOOK(TITLE) VALUES (STRINGDECODE('one'), 1)\"; SQL statement:\r\ninsert into book (id, version, title) values (null, ?, ?) \r\n```\r\n\r\nwhy? please help me.\r\n"},"comment":{"url":"https://api.github.com/repos/grails/gorm-hibernate5/issues/comments/299145907","html_url":"https://github.com/grails/gorm-hibernate5/issues/32#issuecomment-299145907","issue_url":"https://api.github.com/repos/grails/gorm-hibernate5/issues/32","id":299145907,"user":{"login":"xp13910818313","id":11690092,"avatar_url":"https://avatars0.githubusercontent.com/u/11690092?v=3","gravatar_id":"","url":"https://api.github.com/users/xp13910818313","html_url":"https://github.com/xp13910818313","followers_url":"https://api.github.com/users/xp13910818313/followers","following_url":"https://api.github.com/users/xp13910818313/following{/other_user}","gists_url":"https://api.github.com/users/xp13910818313/gists{/gist_id}","starred_url":"https://api.github.com/users/xp13910818313/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xp13910818313/subscriptions","organizations_url":"https://api.github.com/users/xp13910818313/orgs","repos_url":"https://api.github.com/users/xp13910818313/repos","events_url":"https://api.github.com/users/xp13910818313/events{/privacy}","received_events_url":"https://api.github.com/users/xp13910818313/received_events","type":"User","site_admin":false},"created_at":"2017-05-04T10:13:04Z","updated_at":"2017-05-04T10:13:04Z","body":"@graemerocher , it's in spring-tx.4.3.8.RELEASE.jar,base on grails-datastore-gorm.6.0.9.RELEASE\r\n![demo1](https://cloud.githubusercontent.com/assets/11690092/25699278/26115712-30f5-11e7-9be3-77dd1b1c7edb.png)\r\n"}}
{"actor":{"display_login":"xp13910818313"}}