You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tables with foreign collection table. And all works fine.
But I need to allows users to configure table name (using prefix) and when I tried to create tables using specific configuration (DatabaseTableConfig) I noticed strange behavior:
Base table create fine - table name is correct (defined by DatabaseTableConfig)
2․ Table with ForeignCollection (specified by @ForeignCollectionField annotation) created with... default name (based on table class name)
Everything still works fine - but foreign collection table has wrong name.
// This works fine:
DatabaseTableConfig<UsersTable> usersTableCfg = new DatabaseTableConfig(UsersTable.class, cfg.tablePrefix + "users", null);
usersDao = DaoManager.createDao(connection, usersTableCfg);
TableUtils.createTableIfNotExists(connection, usersTableCfg);
// This table is created with name "userspermtable":
DatabaseTableConfig<UsersPermTable> usersPermCfg = new DatabaseTableConfig(UsersPermTable.class, cfg.tablePrefix + "users_perm", null);
usersPerm = DaoManager.createDao(connection, usersPermCfg);
TableUtils.createTableIfNotExists(connection, usersPermCfg);
The text was updated successfully, but these errors were encountered:
Hello!
I have tables with foreign collection table. And all works fine.
But I need to allows users to configure table name (using prefix) and when I tried to create tables using specific configuration (DatabaseTableConfig) I noticed strange behavior:
2․ Table with ForeignCollection (specified by @ForeignCollectionField annotation) created with... default name (based on table class name)
The text was updated successfully, but these errors were encountered: