How can I ignore an object field in Spring Data Cassandra?
Try annotating your temp fields
org.springframework.data.annotation.Transient
and let us know if this works.
So, I wrote a test by adding three fields:
@javax.persistence.Transient
private Boolean one;
@org.springframework.data.annotation.Transient
private Boolean two;
private Boolean three;
for face price Kassandra | Result:
-
one
was filled. -
two
was not filled. -
three
was filled. (just checking that i got my changes)
Output:
-
javax.persistence.Transient
will not ignore the field. -
org.springframework.data.annotation.Transient
will ignore the field.
If so, you get bonus points for creating a quiz for it and submitting a stretch request!
Sorry, I'm on a busy schedule and don't know the code well enough. Created a JIRA ticket though!
source to share
I don't remember explicitly code this in spring-data-cassandra, but this behavior can be fully enforced by spring-data-commons. I don't have time right now to create a test for this.
Try annotating your temp fields org.springframework.data.annotation.Transient
and let us know if this works. If so, you get bonus points for creating a test for it and submitting a stretch request! :)
source to share