Create entity (model) from materialized view

Hi,

Recently I would like to create entity using “generate model” menu in cuba studio, in this case I would like generate model from materialized view in postgre database. Unfortunately unlike regular postgre view, my materialized view is not show up , therefore I cannot generate entity that I needed

What is really happening ? Does Cuba didn’t support generated entity from materialized view ?

Thanks

Hi, @arifian.prahata!
Thanks for reporting the issue, it will be included in the next release.
Workaround: You can create an entity through the entity designer and set a materialized view name to the ‘Table’ field.
Issue: https://youtrack.cuba-platform.com/issue/STUDIO-4430

1 Like

Hi @zlatoverov
Thanks for reply,

glad to hear that I still can generate entity from materialized view , despite without using generate model