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
Hi! For now the only way to setup AerospikeTypeAliasAccessor with typeKey=null is to redeclare bean.
@Bean
public AerospikeTypeAliasAccessor aerospikeTypeAliasAccessor() {
//we do not want to save @class field with type of document into Aerospike
return new AerospikeTypeAliasAccessor(null);
}
We can't send typeKey=null through configuration properties because the configuration spring.data.aerospike.typeKey=null is taking all values as string. Let's discuss the most appropriate variant for setting null on this configuration, and I would contribute this. It can be placeholder @null for example.
The text was updated successfully, but these errors were encountered:
Okay, I've checked both ~ and null values -- both of them are parsed as an empty string. I've looked through the internet and this is what I found: spring-projects/spring-framework#19986
I suppose, this behaviour won't be changed in the nearest future, so we definitely need to have a workaround for that.
I was thinking about some dirty hack like: return new AerospikeTypeAliasAccessor(typeKey.equals("") ? null : typeKey);. Need to discuss with the teammates.
Hi! For now the only way to setup AerospikeTypeAliasAccessor with typeKey=null is to redeclare bean.
We can't send typeKey=null through configuration properties because the configuration spring.data.aerospike.typeKey=null is taking all values as string. Let's discuss the most appropriate variant for setting null on this configuration, and I would contribute this. It can be placeholder @null for example.
The text was updated successfully, but these errors were encountered: