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

ConnectedCrud ignorePropertyNotFound error #749

Open
cn-src opened this issue Dec 15, 2020 · 1 comment
Open

ConnectedCrud ignorePropertyNotFound error #749

cn-src opened this issue Dec 15, 2020 · 1 comment

Comments

@cn-src
Copy link

cn-src commented Dec 15, 2020

If use the ignorePropertyNotFound() method, an exception will occur.

 final ConnectedCrud<Demo, Long> crud = JdbcMapperFactory.newInstance()
            .ignorePropertyNotFound()
            .crud(Demo.class, Long.class)
            .table(pg, "demo");
java.lang.IllegalArgumentException: No constructor available for class java.lang.Long

	at org.simpleflatmapper.reflect.InstantiatorFactory.getBiInstantiator(InstantiatorFactory.java:51)
	at org.simpleflatmapper.map.mapper.MapperBiInstantiatorFactory.getBiInstantiator(MapperBiInstantiatorFactory.java:57)
	at org.simpleflatmapper.map.mapper.MapperBiInstantiatorFactory.getBiInstantiator(MapperBiInstantiatorFactory.java:33)
	at org.simpleflatmapper.map.mapper.DefaultConstantSourceMapperBuilder.getConstructorFieldMappersAndInstantiator(DefaultConstantSourceMapperBuilder.java:594)
	at org.simpleflatmapper.map.mapper.DefaultConstantSourceMapperBuilder.sourceFieldMapper(DefaultConstantSourceMapperBuilder.java:228)
	at org.simpleflatmapper.map.mapper.DefaultConstantSourceMapperBuilder.mapper(DefaultConstantSourceMapperBuilder.java:166)
	at org.simpleflatmapper.map.mapper.SetRowMapperBuilderImpl.sourceFieldMapper(SetRowMapperBuilderImpl.java:196)
	at org.simpleflatmapper.map.mapper.SetRowMapperBuilderImpl.mapper(SetRowMapperBuilderImpl.java:109)
	at org.simpleflatmapper.map.mapper.MapperBuilder.mapper(MapperBuilder.java:42)
	at org.simpleflatmapper.jdbc.impl.CrudFactory.buildKeyMapper(CrudFactory.java:108)
	at org.simpleflatmapper.jdbc.impl.CrudFactory.createCrud(CrudFactory.java:42)
	at org.simpleflatmapper.jdbc.impl.CrudFactory.newInstance(CrudFactory.java:26)
	at org.simpleflatmapper.jdbc.CrudDSL.table(CrudDSL.java:57)
	at org.simpleflatmapper.jdbc.CrudDSL.table(CrudDSL.java:70)
@arnaudroger
Copy link
Owner

I'll have a look it does not seem to be link the could you give me the description of the table and the Demo class?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants