Comments (4)
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.
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.
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.
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)
- java.lang.ClassNotFoundException: org.springframework.data.repository.core.support.ReflectionEntityInformation HOT 1
- Confusion surrounding the 3 major forks. Turn Repo into an Organization? HOT 2
- Not compatible with Spring Boot 1.3 HOT 3
- spring-data-dynamodb:1.0.2.RELEASE does not work with spring boot 1.3.0.RELEASE. HOT 7
- the error ??? HOT 8
- DynamoDBRangeKey causes java.lang.IllegalArgumentException: No method or field annotated by @DynamoDBHashKey within type HOT 2
- Dynamically change value of DynamoDBTable HOT 1
- How to use DynamoDBIndexHashKey and filter
- DynamoDBRepositoryConfigExtension.java uses wrong DYNAMO_DB_MAPPER_CONFIG_REF value HOT 4
- How we can get maximum ragne key against the pratition key
- Usage of operators (GE, LE, GT, LT) on Range key HOT 1
- Same field as DynamoDBRangeKey and DynamoIndexDBRangeKey is causing issue
- Querying on Complex Object Attributes HOT 3
- http://repo.opensourceagility.com/release/ can't be reached HOT 1
- Table name prefix solution in spring-data-dynamodb HOT 1
- Jpa Hitting performance impact it internally uses scan operation HOT 1
- Apply pagination with a filter field HOT 1
- Could not resolve matching constructor HOT 3
- ProvisionedThroughputExceededException
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-data-dynamodb.