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 stumbled across Immutables library and found it to be really good. I am trying to use it with DynamoDBMapper to read/write from Dynamo DB.
DynamoDBMapper only allows mutable objects to be serialized/deserialized. I am running into a issue where DynamoDBMapper writes the value of isInitialized method since it is public. Also throws an exception while reading it since there is no corresponding setter.
Is there a way to generate modifiable classes without isInitialized functionality (or make it private or add DynamoDBIgnore annotation to it)?
The text was updated successfully, but these errors were encountered:
Hi @velpratheesh thank you for asking this, sorry for delayed response. I've tried to find a suitable workaround for this and think you can try to rename "isInitialized" method using style annotation, cannot be 100% sure it will work, but here's the example
@Value.Style(
isInitialized="wasInitialized", // <-- so it will not recognized as getter by "is*" prefixbeanFriendlyModifiables=true) // <-- can improve compatibility with some tools//making modifiable more like bean (setters return void... etc)
I stumbled across Immutables library and found it to be really good. I am trying to use it with DynamoDBMapper to read/write from Dynamo DB.
DynamoDBMapper only allows mutable objects to be serialized/deserialized. I am running into a issue where DynamoDBMapper writes the value of isInitialized method since it is public. Also throws an exception while reading it since there is no corresponding setter.
Is there a way to generate modifiable classes without isInitialized functionality (or make it private or add DynamoDBIgnore annotation to it)?
The text was updated successfully, but these errors were encountered: