{"action":"created","issue":{"url":"https://api.github.com/repos/liquibase/liquibase-hibernate/issues/134","repository_url":"https://api.github.com/repos/liquibase/liquibase-hibernate","labels_url":"https://api.github.com/repos/liquibase/liquibase-hibernate/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/liquibase/liquibase-hibernate/issues/134/comments","events_url":"https://api.github.com/repos/liquibase/liquibase-hibernate/issues/134/events","html_url":"https://github.com/liquibase/liquibase-hibernate/issues/134","id":186229012,"number":134,"title":"3.6: Composite Indexes always re-generated (Hibernate4)","user":{"login":"robertoschwald","id":1519879,"avatar_url":"https://avatars.githubusercontent.com/u/1519879?v=3","gravatar_id":"","url":"https://api.github.com/users/robertoschwald","html_url":"https://github.com/robertoschwald","followers_url":"https://api.github.com/users/robertoschwald/followers","following_url":"https://api.github.com/users/robertoschwald/following{/other_user}","gists_url":"https://api.github.com/users/robertoschwald/gists{/gist_id}","starred_url":"https://api.github.com/users/robertoschwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertoschwald/subscriptions","organizations_url":"https://api.github.com/users/robertoschwald/orgs","repos_url":"https://api.github.com/users/robertoschwald/repos","events_url":"https://api.github.com/users/robertoschwald/events{/privacy}","received_events_url":"https://api.github.com/users/robertoschwald/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-31T08:30:08Z","updated_at":"2016-11-08T19:33:34Z","closed_at":null,"body":"With 3.6 (Hibernate4), existing indexes are always re-created:\r\n\r\nGrails Entity:\r\n\r\n```groovy\r\nclass UserRole implements Serializable {\r\n\tprivate static final long serialVersionUID = 1\r\n\r\n\tUser user\r\n\tRole role\r\n\r\n\tstatic mapping = {\r\n\t\tid composite:['role', 'user']\r\n\t\tversion false\r\n\t}\r\n}\r\n```\r\n\r\nAlways leads to this diffs generated:\r\n\r\n```groovy\r\ndatabaseChangeLog = {\r\n\r\n    changeSet(author: \"rob (generated)\", id: \"1477901616435-1\") {\r\n        dropIndex(indexName: \"FK_4tjo7nu3mr9j4b7pp0bt4ur3m\", tableName: \"user_role_eo\")\r\n    }\r\n\r\n    changeSet(author: \"rob (generated)\", id: \"1477901616435-2\") {\r\n        dropForeignKeyConstraint(baseTableName: \"user_role_eo\", constraintName: \"FK_4tjo7nu3mr9j4b7pp0bt4ur3m\")\r\n\r\n        addForeignKeyConstraint(baseColumnNames: \"user_da_id\", baseTableName: \"user_role_eo\", constraintName: \"FK_4tjo7nu3mr9j4b7pp0bt4ur3m\", referencedColumnNames: \"id_da\", referencedTableName: \"user_eo\")\r\n    }\r\n\r\n    changeSet(author: \"rob (generated)\", id: \"1477901616435-3\") {\r\n        dropForeignKeyConstraint(baseTableName: \"user_role_eo\", constraintName: \"FK_f71rit4ced3vswl68lil7xhii\")\r\n\r\n        addForeignKeyConstraint(baseColumnNames: \"role_da_id\", baseTableName: \"user_role_eo\", constraintName: \"FK_f71rit4ced3vswl68lil7xhii\", referencedColumnNames: \"id_da\", referencedTableName: \"role_eo\")\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/liquibase/liquibase-hibernate/issues/comments/259235865","html_url":"https://github.com/liquibase/liquibase-hibernate/issues/134#issuecomment-259235865","issue_url":"https://api.github.com/repos/liquibase/liquibase-hibernate/issues/134","id":259235865,"user":{"login":"gregdymek","id":16454941,"avatar_url":"https://avatars.githubusercontent.com/u/16454941?v=3","gravatar_id":"","url":"https://api.github.com/users/gregdymek","html_url":"https://github.com/gregdymek","followers_url":"https://api.github.com/users/gregdymek/followers","following_url":"https://api.github.com/users/gregdymek/following{/other_user}","gists_url":"https://api.github.com/users/gregdymek/gists{/gist_id}","starred_url":"https://api.github.com/users/gregdymek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregdymek/subscriptions","organizations_url":"https://api.github.com/users/gregdymek/orgs","repos_url":"https://api.github.com/users/gregdymek/repos","events_url":"https://api.github.com/users/gregdymek/events{/privacy}","received_events_url":"https://api.github.com/users/gregdymek/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T19:33:34Z","updated_at":"2016-11-08T19:33:34Z","body":"isn't it something https://github.com/liquibase/liquibase-hibernate/commit/6db7aebb8d722f7a9a7b69bcdf7be2e0a1e201ba related ?"}}
{"actor":{"display_login":"gregdymek"}}