{"action":"closed","issue":{"url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/720","labels_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/720/labels{/name}","comments_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/720/comments","events_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/720/events","html_url":"https://github.com/impetus-opensource/Kundera/issues/720","id":61025764,"number":720,"title":"Generate wrong table while using UDT(user define type)","user":{"login":"ankit5858","id":11443617,"avatar_url":"https://avatars.githubusercontent.com/u/11443617?v=3","gravatar_id":"","url":"https://api.github.com/users/ankit5858","html_url":"https://github.com/ankit5858","followers_url":"https://api.github.com/users/ankit5858/followers","following_url":"https://api.github.com/users/ankit5858/following{/other_user}","gists_url":"https://api.github.com/users/ankit5858/gists{/gist_id}","starred_url":"https://api.github.com/users/ankit5858/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankit5858/subscriptions","organizations_url":"https://api.github.com/users/ankit5858/orgs","repos_url":"https://api.github.com/users/ankit5858/repos","events_url":"https://api.github.com/users/ankit5858/events{/privacy}","received_events_url":"https://api.github.com/users/ankit5858/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-13T09:55:16Z","updated_at":"2015-03-16T04:31:30Z","closed_at":"2015-03-16T04:31:30Z","body":"Hi, we got a problem while creating UDT table, we are using [cqlsh 5.0.1 | Cassandra 2.1.2 | CQL spec 3.2.0 | Native protocol v3]\r\n\r\nKundera create as..\r\n-------------------------------\r\nCREATE TABLE samplekund.officer (\r\n    key text,\r\n    column1 text,\r\n    value blob,\r\n    column2 text,\r\n    PRIMARY KEY (key, column1)\r\n) ;\r\n-------------------------------------------------------------------------------\r\nInstead of ..\r\nCREATE TABLE samplekund.officer (\r\n    Id int PRIMARY KEY,\r\n    city text,\r\n    state text,\r\n    addressType text,\r\n    phoneType frozen <PhoneType>\r\n\r\n);\r\n\r\nblow are my pojo class\r\n-----------------------------------------------------------------------------\r\n@Entity\r\n@Table(name=\"address\",schema=\"sampleapp@cassandra_pu\")\r\npublic class Address {\r\n\t\r\n\t@Id\r\n\t@Column\r\n\tprivate int Id;\r\n\t@Column\r\n\tprivate String city;\r\n\t@Column\r\n\tprivate String state;\r\n\t@Column\r\n\tprivate String addressType;\r\n\t@Embedded\r\n\tprivate PhoneType phoneType;\r\n}\r\n\r\n\r\n@Embeddable\r\npublic class PhoneType {\r\n\r\n\t@Column(name=\"home_phone\")\r\n\tprivate long homePh;\r\n\t@Column(name=\"mobile_phone\")\r\n\tprivate long mobilePh;\r\n}\r\n"}}