Hi guys,
how can i “import” a view in my data model? In Generate Model i see only tables but in my existing database i have already a lot of views.
I’m trying to migrate my application in CUBA Platofrm, so i need to reuse the existing database structure (tables and views).
Thanks in advance
Hi,
Currently CUBA Studio cannot map database views to entities automatically when reverse engineering the database. We are going to add this functionality to one of the next releases of the platform - we’ll do our best to be in time for 6.6 scheduled for July 2017. Please see this issue for tracking: [url=https://youtrack.haulmont.com/issue/STUDIO-3668]https://youtrack.cuba-platform/issue/STUDIO-3668[/url]
Meanwhile, you can map entities to your views manually, just by specifying view name instead of table. It will work if your views return an identifier of a suitable type. Otherwise, try to use non-persistent entities as demonstrated in this example: [url=https://github.com/aleksey-stukalov/mssql-view]https://github.com/aleksey-stukalov/mssql-view[/url]
Hi,
Does this function implemented? I can’t access the youtrack system, it requires login.