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
Since the plugin uses the current tenant in all queries, the tenant value must have a "plain" way to save it in one database field. So, if we want to use an object as tenant representation, we should have a simple way to 'serialize' it and bring it back. Probably the tenant object should implement an interface with kind of marshal() and unmarshal() methods, or kind of that. Right? Then, when modifying the query in the database, the plugin would add the 'serialized tenant way'.
when you say tenant object , what do you mean?
also for the filter its setup as follows
multiTenantHibernateFilter(FilterDefinitionFactoryBean) {
defaultFilterCondition = ":tenantId = $tenantColumnName"
parameterTypes = [ tenantId: "java.lang.Integer" ]
}
we can make the type config come from the config.
currently we are locked into integer.
a. grails uses long as default for id's
b. we are also looking at using a UUID as an option right now too.
Does anyone foresee an issue with this?
CurrentTenant.get would return and object now instead.
The text was updated successfully, but these errors were encountered: