I have a problem with the current API design, which also made me rewrite some functions in PgBulkInsert. We support both writing mapInteger with an Integer and a primitive int. This is done by using a custom Lambda "ToInt" function. But this leads to the ugly side-effect, that the JVM cannot resolve the correct method:

Basically I would like to rename the methods to:
mapBooleanPrimitive
mapFloatPrimitive
- ...
So this would not happen anymore. And one can easily choose to use the boxed / unboxed type.
I have a problem with the current API design, which also made me rewrite some functions in PgBulkInsert. We support both writing
mapIntegerwith anIntegerand a primitiveint. This is done by using a custom Lambda "ToInt" function. But this leads to the ugly side-effect, that the JVM cannot resolve the correct method:Basically I would like to rename the methods to:
mapBooleanPrimitivemapFloatPrimitiveSo this would not happen anymore. And one can easily choose to use the boxed / unboxed type.