{"action":"created","issue":{"url":"https://api.github.com/repos/SpineEventEngine/core-java/issues/698","repository_url":"https://api.github.com/repos/SpineEventEngine/core-java","labels_url":"https://api.github.com/repos/SpineEventEngine/core-java/issues/698/labels{/name}","comments_url":"https://api.github.com/repos/SpineEventEngine/core-java/issues/698/comments","events_url":"https://api.github.com/repos/SpineEventEngine/core-java/issues/698/events","html_url":"https://github.com/SpineEventEngine/core-java/pull/698","id":321182788,"number":698,"title":"Add support for Enum Entity Columns","user":{"login":"dmitrykuzmin","id":5636313,"avatar_url":"https://avatars0.githubusercontent.com/u/5636313?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitrykuzmin","html_url":"https://github.com/dmitrykuzmin","followers_url":"https://api.github.com/users/dmitrykuzmin/followers","following_url":"https://api.github.com/users/dmitrykuzmin/following{/other_user}","gists_url":"https://api.github.com/users/dmitrykuzmin/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrykuzmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrykuzmin/subscriptions","organizations_url":"https://api.github.com/users/dmitrykuzmin/orgs","repos_url":"https://api.github.com/users/dmitrykuzmin/repos","events_url":"https://api.github.com/users/dmitrykuzmin/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrykuzmin/received_events","type":"User","site_admin":false},"labels":[{"id":404118561,"url":"https://api.github.com/repos/SpineEventEngine/core-java/labels/WIP","name":"WIP","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":{"login":"dmitrykuzmin","id":5636313,"avatar_url":"https://avatars0.githubusercontent.com/u/5636313?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitrykuzmin","html_url":"https://github.com/dmitrykuzmin","followers_url":"https://api.github.com/users/dmitrykuzmin/followers","following_url":"https://api.github.com/users/dmitrykuzmin/following{/other_user}","gists_url":"https://api.github.com/users/dmitrykuzmin/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrykuzmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrykuzmin/subscriptions","organizations_url":"https://api.github.com/users/dmitrykuzmin/orgs","repos_url":"https://api.github.com/users/dmitrykuzmin/repos","events_url":"https://api.github.com/users/dmitrykuzmin/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrykuzmin/received_events","type":"User","site_admin":false},"assignees":[{"login":"dmitrykuzmin","id":5636313,"avatar_url":"https://avatars0.githubusercontent.com/u/5636313?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitrykuzmin","html_url":"https://github.com/dmitrykuzmin","followers_url":"https://api.github.com/users/dmitrykuzmin/followers","following_url":"https://api.github.com/users/dmitrykuzmin/following{/other_user}","gists_url":"https://api.github.com/users/dmitrykuzmin/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrykuzmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrykuzmin/subscriptions","organizations_url":"https://api.github.com/users/dmitrykuzmin/orgs","repos_url":"https://api.github.com/users/dmitrykuzmin/repos","events_url":"https://api.github.com/users/dmitrykuzmin/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrykuzmin/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-05-08T13:18:43Z","updated_at":"2018-05-11T12:12:23Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/SpineEventEngine/core-java/pulls/698","html_url":"https://github.com/SpineEventEngine/core-java/pull/698","diff_url":"https://github.com/SpineEventEngine/core-java/pull/698.diff","patch_url":"https://github.com/SpineEventEngine/core-java/pull/698.patch"},"body":"This PR resolves the issue https://github.com/SpineEventEngine/core-java/issues/491.\r\n\r\nNow the `@Column` annotation can be used on `getters` which return the [Java Enum](https://docs.oracle.com/javase/tutorial/java/javaOO/enum.html) type.\r\n\r\nEnum values are persisted in the storage through their `ordinal` or their `name`. A new annotation `@Enumerated` allows user to specify the storage type; by default all Enum Entity Columns are `ordinal` (even those not annotated with `@Enumerated`). This behaviour imitates the [JPA Enumerated](https://docs.oracle.com/javaee/6/api/javax/persistence/Enumerated.html).\r\n\r\n`ColumnFilter` instances are created with Enum values directly, so they do not depend on the Column storage type.\r\n\r\nThe Spine version was bumped to `0.10.37-SNAPSHOT`."},"comment":{"url":"https://api.github.com/repos/SpineEventEngine/core-java/issues/comments/388346101","html_url":"https://github.com/SpineEventEngine/core-java/pull/698#issuecomment-388346101","issue_url":"https://api.github.com/repos/SpineEventEngine/core-java/issues/698","id":388346101,"user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"created_at":"2018-05-11T12:12:23Z","updated_at":"2018-05-11T12:12:23Z","author_association":"NONE","body":"\n![Codacy](https://app.codacy.com/assets/images/favicon.png) Here is an overview of what got changed by this pull request:\n\n\n```diff\n\nIssues\n======\n+ Solved 1\n           \n```\n\n\nSee the complete overview on [Codacy](https://app.codacy.com/app/alex-tymchenko/core-java/pullRequest?prid=1624967&bid=7260608)\n        "}}
{"actor":{"display_login":"codacy-bot"}}