Skip to content

Fluent Setters Not working with EnhancedClient #5039

Open
@patrickjamesbarry

Description

@patrickjamesbarry

Describe the bug

Our pojos/beans used with DynamoDbMapper (v1) used to work with fluent setters. This seems to be broken when using the EnhancedClient with v2.

Expected Behavior

expectation is that this bean would work (the name attribute would be set

@DynamodbBean
public MyClass{
 private String name;
  public MyClass setName(String name){
     this.name = name;
     return this;
  }
}

Current Behavior

The attribute using a fluent setter does not work and the attribute will always be null

Reproduction Steps

  1. Create instance of EnhancedClient
  2. Create DynamodbBean like above to represent an item in the table
  3. Create table schema using DynamodbBean
  4. Save item to table and observe null for 'name'

Possible Solution

No response

Additional Information/Context

This has been reported in other tickets, but there has been no ticket created to fix or add this support.
example: #2213

AWS Java SDK version used

2.25.2

JDK version used

openjdk version "17.0.7" 2023-04-18

Operating System and version

mac 13.6.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    dynamodb-enhancedfeature-requestA feature should be added or improved.p3This is a minor priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions