{"action":"reopened","issue":{"url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4427","repository_url":"https://api.github.com/repos/jOOQ/jOOQ","labels_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4427/labels{/name}","comments_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4427/comments","events_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4427/events","html_url":"https://github.com/jOOQ/jOOQ/issues/4427","id":97419827,"number":4427,"title":"ScalaGenerator generates Java code for MySQL / PostgreSQL enum types","user":{"login":"lukaseder","id":734593,"avatar_url":"https://avatars.githubusercontent.com/u/734593?v=3","gravatar_id":"","url":"https://api.github.com/users/lukaseder","html_url":"https://github.com/lukaseder","followers_url":"https://api.github.com/users/lukaseder/followers","following_url":"https://api.github.com/users/lukaseder/following{/other_user}","gists_url":"https://api.github.com/users/lukaseder/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaseder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaseder/subscriptions","organizations_url":"https://api.github.com/users/lukaseder/orgs","repos_url":"https://api.github.com/users/lukaseder/repos","events_url":"https://api.github.com/users/lukaseder/events{/privacy}","received_events_url":"https://api.github.com/users/lukaseder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/C:%20Code%20Generation","name":"C: Code Generation","color":"0000aa"},{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/C:%20Integration:%20Scala","name":"C: Integration: Scala","color":"0000aa"},{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/P:%20Medium","name":"P: Medium","color":"ffaaaa"},{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/R:%20Fixed","name":"R: Fixed","color":"55ff55"},{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/T:%20Defect","name":"T: Defect","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jOOQ/jOOQ/milestones/119","html_url":"https://github.com/jOOQ/jOOQ/milestones/Version%203.8.0","labels_url":"https://api.github.com/repos/jOOQ/jOOQ/milestones/119/labels","id":1094772,"number":119,"title":"Version 3.8.0","description":"","creator":{"login":"lukaseder","id":734593,"avatar_url":"https://avatars.githubusercontent.com/u/734593?v=3","gravatar_id":"","url":"https://api.github.com/users/lukaseder","html_url":"https://github.com/lukaseder","followers_url":"https://api.github.com/users/lukaseder/followers","following_url":"https://api.github.com/users/lukaseder/following{/other_user}","gists_url":"https://api.github.com/users/lukaseder/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaseder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaseder/subscriptions","organizations_url":"https://api.github.com/users/lukaseder/orgs","repos_url":"https://api.github.com/users/lukaseder/repos","events_url":"https://api.github.com/users/lukaseder/events{/privacy}","received_events_url":"https://api.github.com/users/lukaseder/received_events","type":"User","site_admin":false},"open_issues":120,"closed_issues":265,"state":"open","created_at":"2015-05-04T10:29:41Z","updated_at":"2016-03-04T20:47:31Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-07-27T09:17:01Z","updated_at":"2016-03-04T20:47:31Z","closed_at":null,"body":"The generator generates Java code in a Scala class for Postgres enums :\r\n   e.g. \r\n\r\n```sql\r\nCREATE TYPE preparation_time AS ENUM ('quick', 'average', 'lengthy');\r\n```\r\n\r\n-> PreparationTime.scala which contains : \r\n\r\n```java\r\npublic enum PreparationTime implements EnumType {\r\n```\r\n\r\n----\r\nSee also original bug report by Suleiman Khan:\r\nhttps://groups.google.com/d/msg/jooq-user/uIvhuXwLXUg/bzwX9AMSxQsJ"}}