{ "id": "151946", "key": "AC-453", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2015-11-11T02:39:15.000+0000", "created": "2015-10-11T21:16:44.000+0000", "labels": [], "versions": [ { "id": "17032", "name": "Appcelerator Studio 4.3.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-11-11T14:37:22.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "appc run\r\nAppcelerator Command-Line Interface, version 5.0.2\r\nCopyright (c) 2014-2015, Appcelerator, Inc. All Rights Reserved.\r\n\r\nINFO | Arrow/1.2.62 OSD/1.0.0\r\nINFO | APIKey is: ---\r\nINFO | starting connector/appc.mssql@1.1.3\r\n{color:red}INFO | Skipping generation of model from table vappointments because it has no primary key in the schema.{color}\r\nINFO | started connector/appc.mssql\r\nINFO | starting connector/appc.arrowdb@1.1.3\r\nINFO | started connector/appc.arrowdb\r\nINFO | Access the Arrow admin at http://127.0.0.1:8080/arrow. This will only be available on your dev environment. To enable in production, set enableAdminInProduction in your config\r\nINFO | Access the Arrow API doc at http://127.0.0.1:8080/apidoc\r\nINFO | started\r\nINFO | server started on port 8080\r\n\r\nI want to create a model based on several tables including multiple instance of the same table (PERSON) where different people serve different roles. So, there is one row for OFFICE_VISIT but then there are two joins to the PERSON table for 1) the patient and 2) the provider. \r\n\r\nI have been unsuccessful in defining a model based on multiple instances of the PERSON table - Is there a way?\r\n\r\n\r\nBecause I was unsuccessful, I decided to create a view that includes all the tables in a join. The view works but Arrow refuses to build a model because there is no primary key.", "attachment": [], "flagged": false, "summary": "Arrow - can't create a model based on a view", "creator": { "name": "mitch.starnes@bnsf.com", "key": "mitch.starnes@bnsf.com", "displayName": "Mitch Starnes", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "mitch.starnes@bnsf.com", "key": "mitch.starnes@bnsf.com", "displayName": "Mitch Starnes", "active": true, "timeZone": "America/Chicago" }, "environment": "See description. Please add a component for Arrow.", "comment": { "comments": [ { "id": "369520", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~mitch.starnes@bnsf.com], Are you following this doc link [here|http://docs.appcelerator.com/platform/latest/#!/guide/Arrow_Models-section-43299044_ArrowModels-CreateaCompositeModel]. You can also look at this [blog post|http://www.appcelerator.com/blog/2015/06/arrow-builder-salesforce-composite-connector/]. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-11-10T06:27:42.000+0000", "updated": "2015-11-10T06:27:42.000+0000" }, { "id": "369741", "author": { "name": "mitch.starnes@bnsf.com", "key": "mitch.starnes@bnsf.com", "displayName": "Mitch Starnes", "active": true, "timeZone": "America/Chicago" }, "body": "This was resolved with an unanswered question?\r\n\r\nThe issue is that I can't create a model on a VIEW apparently because there is no primary key (on a view).\r\n\r\n", "updateAuthor": { "name": "mitch.starnes@bnsf.com", "key": "mitch.starnes@bnsf.com", "displayName": "Mitch Starnes", "active": true, "timeZone": "America/Chicago" }, "created": "2015-11-11T13:46:35.000+0000", "updated": "2015-11-11T13:46:35.000+0000" }, { "id": "369745", "author": { "name": "mitch.starnes@bnsf.com", "key": "mitch.starnes@bnsf.com", "displayName": "Mitch Starnes", "active": true, "timeZone": "America/Chicago" }, "body": "Let me add that you can't create a composite model when the joined tables have multi-column primary keys.", "updateAuthor": { "name": "mitch.starnes@bnsf.com", "key": "mitch.starnes@bnsf.com", "displayName": "Mitch Starnes", "active": true, "timeZone": "America/Chicago" }, "created": "2015-11-11T14:37:22.000+0000", "updated": "2015-11-11T14:37:22.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }