Since cuba studio uses the jdbc data store settings for the “generate model database” to work, it is using username as default schema name, but this is not always the needed one. There should be a way to set a different schema name
Hi,
Studio’s “Generate Model” feature doesn’t support generating model by tables from non-default schema. The “Generate database scripts” feature also doesn’t support it.
But the CUBA runtime can work fine with such tables.
I would suggest the following:
backup and restore table definitions from your desired_schema_name to some other Oracle server where they will appear in the default schema.
run Generate Model from that schema
manually change all definitions of entities, use @Table(name = "...", schema="desired_schema_name")
switch back data store settings to the original connection.
After that entities from non-default schema should be read and written by the CUBA successfully.