Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DynamoDBIgnoreNulls - propagation to list of inner classes #2621

Closed
reply2srij opened this issue Jul 23, 2021 · 2 comments
Closed

DynamoDBIgnoreNulls - propagation to list of inner classes #2621

reply2srij opened this issue Jul 23, 2021 · 2 comments
Labels
closed-for-staleness dynamodb-enhanced guidance Question that needs advice or information. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.

Comments

@reply2srij
Copy link

reply2srij commented Jul 23, 2021

I am using @DynamoDbIgnoreNulls on list of InnerClass, but the get responses do contain attributes that are null. Refered to #2303, the difference being what I have is a List of InnerClasses.

@DynamoDbBean
public class OuterClass {
private String outerClassPrimaryKey;
private List innerClassList;

@DynamoDbPartitionKey
public String getOuterClassPrimaryKey() { return outerClassPrimaryKey; }
public void setOuterClassPrimaryKey(String outerClassPrimaryKey) { this.outerClassPrimaryKey = outerClassPrimaryKey;	}

@DynamoDbIgnoreNulls
public List<InnerClass> getInnerClassList() { return innerClassList; }
public void setInnerClassList(List<InnerClass> innerClassList) { this.innerClassList = innerClassList; }

}

@DynamoDbBean
public class InnerClass {
private String innerClassPrimaryKey;
private String innerClassAttribute1;
private String innerClassAttribute2;

@DynamoDbPartitionKey
public String getInnerClassPrimaryKey() { return innerClassPrimaryKey; }
public void setInnerClassPrimaryKey(String innerClassPrimaryKey) { this.innerClassPrimaryKey = innerClassPrimaryKey; }
public String getInnerClassAttribute1() { return innerClassAttribute1; }
public void setInnerClassAttribute1(String innerClassAttribute1) { this.innerClassAttribute1 = innerClassAttribute1; }
public String getInnerClassAttribute2() { return innerClassAttribute2; }
public void setInnerClassAttribute2(String innerClassAttribute2) { this.innerClassAttribute2 = innerClassAttribute2; }

}

  • AWS Java SDK version used: 2.16.99
  • JDK version used: Open JDK 11
  • Operating System and version: Windows 10
@reply2srij reply2srij added guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged. labels Jul 23, 2021
@debora-ito
Copy link
Member

@reply2srij The @DynamoDbIgnoreNulls annotation should be working in this case.

Can you provide a sample code where you use the bean classes you showed in the description, and describe exactly what you are seeing and what you expected to see?

@debora-ito debora-ito added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 10 days. dynamodb-enhanced and removed needs-triage This issue or PR still needs to be triaged. labels Jul 30, 2021
@github-actions
Copy link

github-actions bot commented Aug 6, 2021

It looks like this issue hasn’t been active in longer than a week. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please add a comment to prevent automatic closure, or if the issue is already closed please feel free to reopen it.

@github-actions github-actions bot added closing-soon This issue will close in 4 days unless further comments are made. closed-for-staleness and removed closing-soon This issue will close in 4 days unless further comments are made. labels Aug 6, 2021
aws-sdk-java-automation added a commit that referenced this issue Jul 19, 2023
…856c9d515

Pull request: release <- staging/b2ea267b-8e5f-4b57-b76c-bf3856c9d515
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-for-staleness dynamodb-enhanced guidance Question that needs advice or information. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
Projects
None yet
Development

No branches or pull requests

2 participants