Persist-only property support for DynamoDB Enhanced client
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Java
- Estrellas
- 2.6k
- Forks
- 1k
- Merge medio
- 2 d 9 h
- PR fusionados (30 d)
- 51
Descripción
Describe the feature
The Enhanced client should identify JavaBeans properties based on getter methods. When a setter method is not present, the client should persist the property into DynamoDB but should not attempt to set the property on read. (If necessary, an explicit directive to do this such as Jackson's @JsonProperty(access) would be okay.)
Use Case
I have a table with a large number of derived properties for indexing. Currently, the Enhanced client fails to correctly identify properties that have only getter methods and not setter methods. As the use of derived properties to paste together main properties is the standard method of creating indexes for DDB, it would be helpful not to have to include dummy setters.
Proposed Solution
Modify BeanTableSchema#isMappableProperty not to exclude properties without setters, and allow missing setters to be interpreted as "no-op".
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
AWS Java SDK version used
2.19.25
JDK version used
openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9) OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)
Operating System and version
Gentoo Linux
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comience leyendo BeanTableSchema#isMappableProperty para entender cómo se excluyen actualmente las propiedades de JavaBeans sin setters. Siga cómo el Enhanced client gestiona la lectura y escritura de esas propiedades y, a continuación, verifique que las propiedades que solo tienen getter se persisten, mientras que las lecturas tratan sus setters inexistentes como no-ops.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- databases
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100