Giter VIP home page Giter VIP logo

Comments (4)

derjust avatar derjust commented on August 25, 2024

Looks like you have done everything right.

Have you tried moving the annotation from the getter to the field itself?
Lately there have been some fixes been released that look at both locations. Which version do you use?
(I'm traveling so I'm quite impaired doing tests myself)

from spring-data-dynamodb.

bbradley72 avatar bbradley72 commented on August 25, 2024

Thanks for the quick reply.

I'm currently using this version:
com.github.derjust:spring-data-dynamodb:4.4.1

I'll try moving it to the field and see if that works.

I would note that the marshaller works when simply reading the records when searched by userId but not createdOn. It only errors when I try and include createdOn in the findBy definition.

from spring-data-dynamodb.

bbradley72 avatar bbradley72 commented on August 25, 2024

I moved the annotation to the property and it still gave the same error:

@DynamoDBTable(tableName = "BaseDomain")
public class BaseDomain {
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    private String id;
    private String createdBy;
    @DynamoDBTypeConverted(converter = ZonedDateTimeJSONConverter.class)
    private ZonedDateTime createdOn;
...
    public ZonedDateTime getCreatedOn() {
        return createdOn;
    }
    public void setCreatedOn(ZonedDateTime createdOn) {
        this.createdOn = createdOn;
    }

from spring-data-dynamodb.

jasiustasiu avatar jasiustasiu commented on August 25, 2024

I had the same problem. Replace @DynamoDBTypeConverted with @DynamoDBMarshalling. It's deprecated but it works in this case

from spring-data-dynamodb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.