{"action":"created","issue":{"url":"https://api.github.com/repos/j256/ormlite-core/issues/89","repository_url":"https://api.github.com/repos/j256/ormlite-core","labels_url":"https://api.github.com/repos/j256/ormlite-core/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/j256/ormlite-core/issues/89/comments","events_url":"https://api.github.com/repos/j256/ormlite-core/issues/89/events","html_url":"https://github.com/j256/ormlite-core/issues/89","id":173581187,"number":89,"title":"UUID_NATIVE does not seem to work with Postgres","user":{"login":"akaoj","id":7584951,"avatar_url":"https://avatars.githubusercontent.com/u/7584951?v=3","gravatar_id":"","url":"https://api.github.com/users/akaoj","html_url":"https://github.com/akaoj","followers_url":"https://api.github.com/users/akaoj/followers","following_url":"https://api.github.com/users/akaoj/following{/other_user}","gists_url":"https://api.github.com/users/akaoj/gists{/gist_id}","starred_url":"https://api.github.com/users/akaoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaoj/subscriptions","organizations_url":"https://api.github.com/users/akaoj/orgs","repos_url":"https://api.github.com/users/akaoj/repos","events_url":"https://api.github.com/users/akaoj/events{/privacy}","received_events_url":"https://api.github.com/users/akaoj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-27T06:28:00Z","updated_at":"2016-09-05T18:52:17Z","closed_at":null,"body":"Hello,\r\nAfter I saw the support for UUID native fields, I switched to the 5.0 release. But it seems either it doesn't work or I'm missing something.\r\nI have a pojo class with a java.util.UUID ID field and the annotation\r\n\r\n`@DatabaseField( generatedId=true, dataType=DataType.UUID_NATIVE )`\r\n\r\nmy database has the field\r\n\r\n`\"id\" uuid not null primary key default uuid_generate_v4()`\r\n\r\nbut when I try to save an object with\r\n\r\n`dao.create( myObj )`\r\n\r\nthen I have a PSQLException `column \"id\" is of type uuid but expression is of type character varying`.\r\n\r\nIf I add `readOnly = true` to the `@DatabaseField`, then the insert works, but the ID returned by my object after the `.create()` is not the ID saved in the database.\r\n\r\nAm I doing something bad? Is it possible to handle UUID auto-generated ID values on the database ?"},"comment":{"url":"https://api.github.com/repos/j256/ormlite-core/issues/comments/244798772","html_url":"https://github.com/j256/ormlite-core/issues/89#issuecomment-244798772","issue_url":"https://api.github.com/repos/j256/ormlite-core/issues/89","id":244798772,"user":{"login":"akaoj","id":7584951,"avatar_url":"https://avatars.githubusercontent.com/u/7584951?v=3","gravatar_id":"","url":"https://api.github.com/users/akaoj","html_url":"https://github.com/akaoj","followers_url":"https://api.github.com/users/akaoj/followers","following_url":"https://api.github.com/users/akaoj/following{/other_user}","gists_url":"https://api.github.com/users/akaoj/gists{/gist_id}","starred_url":"https://api.github.com/users/akaoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaoj/subscriptions","organizations_url":"https://api.github.com/users/akaoj/orgs","repos_url":"https://api.github.com/users/akaoj/repos","events_url":"https://api.github.com/users/akaoj/events{/privacy}","received_events_url":"https://api.github.com/users/akaoj/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T18:52:17Z","updated_at":"2016-09-05T18:52:17Z","body":"Is it possible to actually use the Postgres UUID type with OrmLite or not at all? If not, what is the purpose of\r\n\r\n`dataType=DataType.UUID_NATIVE`\r\n\r\n?\r\n"}}
{"actor":{"display_login":"akaoj"}}