Skip to content

Add reading / writing property information to PersistentProperty. [DATACMNS-534] #1004

@spring-projects-issues

Description

@spring-projects-issues

Christoph Strobl opened DATACMNS-534 and commented

Currently @Transient can be used to exclude properties.

adding property.isReading() and property.isWriting() would allow distinction if property.shallBePersisted().

By default non @Transient properties have reading/writing set to true.

Adding @ReadingProperty explicity marks a property for being read from the store, while @WritingProperty does the same for writing to the store.

Having both of them defined would be the same as having none of those.

NOTE: move and rename @Calculated from mongodb to commons and refactor mongodb to use property.isWriting() within its MappingMongoConverter


Issue Links:

  • DATAMONGO-980 Use meta annotations from spring data commons for @Score
    ("is depended on by")

Referenced from: pull request #88

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions