You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Getter@AllArgsConstructorpublicclassTestData {
privatefinalOffsetDateTimecreatedAt;
}
List<TestData> list = SelectQueryMapperFactory.newInstance().newMapper(TestData.class).asList(dsl.select().from(TEST));
Mapping error occurs:
org.jooq.exception.MappingException: Could not find eligible property for 'CREATED_AT' on class TestData not found See https://github.com/arnaudroger/SimpleFlatMapper/wiki/Errors_PROPERTY_NOT_FOUND
at org.simpleflatmapper.jooq.SelectQueryMapper.getMapper(SelectQueryMapper.java:186)
at org.simpleflatmapper.jooq.SelectQueryMapper.asList(SelectQueryMapper.java:46)
...
sfm-jooq v. 8.2.3 is used
The text was updated successfully, but these errors were encountered:
Just run mvn test to get the error (jooq model gets generated by LiquibaseGenerator):
org.jooq.exception.MappingException: Could not find eligible property for 'CREATED_AT' on class com.example.sfmtimestamptz.TestRepository$TestData not found See https://github.com/arnaudroger/SimpleFlatMapper/wiki/Errors_PROPERTY_
NOT_FOUND
at com.example.sfmtimestamptz.SfmTimestamptzSpringApplicationTests.correctOffsetDateTime(SfmTimestamptzSpringApplicationTests.java:24)
I have the same issue, with LocalDateTime and Timestamp type.
The column in my postgres db has datatype timestamp and i would like to map it to Java LocalDateTime property. Here I also get eligible property for ....
Definition in JOOQ generated table for the column ist: public final TableField<UsersRecord, LocalDateTime> DELETED_DATE;
Its working, if i change the datatype in my java object to Timestamp or String.
Having this table in database:
And this JOOQ's generated field for table's column:
When querying that table using SelectQueryMapper:
Mapping error occurs:
sfm-jooq v. 8.2.3 is used
The text was updated successfully, but these errors were encountered: