@@ -91,17 +91,17 @@ protected <TProperty> void mapNull(String columnName, Function<TEntity, TProper
9191
9292 protected void mapTinyInt (String columnName , Function <TEntity , Byte > propertyGetter )
9393 {
94- mapProperty (columnName , Types .TINYINT , propertyGetter , new IdentityConverter ());
94+ mapProperty (columnName , Types .TINYINT , propertyGetter , new IdentityConverter <> ());
9595 }
9696
9797 protected void mapSmallInt (String columnName , Function <TEntity , Short > propertyGetter )
9898 {
99- mapProperty (columnName , Types .SMALLINT , propertyGetter , new IdentityConverter ());
99+ mapProperty (columnName , Types .SMALLINT , propertyGetter , new IdentityConverter <> ());
100100 }
101101
102102 protected void mapSmallInt (String columnName , boolean isAutoIncrement )
103103 {
104- mapProperty (columnName , Types .SMALLINT , 0 , 0 , isAutoIncrement , (entity ) -> null , new IdentityConverter ());
104+ mapProperty (columnName , Types .SMALLINT , 0 , 0 , isAutoIncrement , (entity ) -> null , new IdentityConverter <> ());
105105 }
106106
107107 protected void mapInteger (String columnName , Function <TEntity , Integer > propertyGetter )
@@ -111,24 +111,24 @@ protected void mapInteger(String columnName, Function<TEntity, Integer> property
111111
112112 protected void mapInteger (String columnName , boolean isAutoIncrement )
113113 {
114- mapProperty (columnName , Types .INTEGER , 0 , 0 , isAutoIncrement , (entity ) -> null , new IdentityConverter ());
114+ mapProperty (columnName , Types .INTEGER , 0 , 0 , isAutoIncrement , (entity ) -> null , new IdentityConverter <> ());
115115 }
116116
117117 protected void mapIntegerPrimitive (String columnName , ToIntFunction <TEntity > propertyGetter )
118118 {
119- mapProperty (columnName , Types .INTEGER , ( entity ) -> propertyGetter . applyAsInt ( entity ) , new IdentityConverter ());
119+ mapProperty (columnName , Types .INTEGER , propertyGetter :: applyAsInt , new IdentityConverter <> ());
120120 }
121121
122122 protected void mapLong (String columnName , Function <TEntity , Long > propertyGetter ) {
123- mapProperty (columnName , Types .BIGINT , propertyGetter , new IdentityConverter ());
123+ mapProperty (columnName , Types .BIGINT , propertyGetter , new IdentityConverter <> ());
124124 }
125125
126126 protected void mapLong (String columnName , boolean isAutoIncrement ) {
127127 mapProperty (columnName , Types .BIGINT , 0 , 0 , isAutoIncrement , (entity ) -> null , new IdentityConverter ());
128128 }
129129
130130 protected void mapLongPrimitive (String columnName , ToLongFunction <TEntity > propertyGetter ) {
131- mapProperty (columnName , Types .BIGINT , (entity ) -> propertyGetter .applyAsLong (entity ), new IdentityConverter ());
131+ mapProperty (columnName , Types .BIGINT , (entity ) -> propertyGetter .applyAsLong (entity ), new IdentityConverter <> ());
132132 }
133133
134134 protected void mapNumeric (String columnName , int precision , int scale , Function <TEntity , BigDecimal > propertyGetter ) {
@@ -143,60 +143,55 @@ protected void mapDecimal(String columnName, int precision, int scale, Function<
143143 }
144144
145145 protected void mapReal (String columnName , Function <TEntity , Float > propertyGetter ) {
146- mapProperty (columnName , Types .REAL , propertyGetter , new IdentityConverter ());
146+ mapProperty (columnName , Types .REAL , propertyGetter , new IdentityConverter <> ());
147147 }
148148
149149 protected void mapRealPrimitive (String columnName , ToFloatFunction <TEntity > propertyGetter ) {
150- mapProperty (columnName , Types .REAL , ( entity ) -> propertyGetter . applyAsFloat ( entity ) , new IdentityConverter ());
150+ mapProperty (columnName , Types .REAL , propertyGetter :: applyAsFloat , new IdentityConverter <> ());
151151 }
152152
153153 protected void mapBigInt (String columnName , Function <TEntity , BigInteger > propertyGetter ) {
154154 mapProperty (columnName , Types .BIGINT , propertyGetter , new BigIntegerConverter ());
155155 }
156156
157157 protected void mapDouble (String columnName , Function <TEntity , Double > propertyGetter ) {
158- mapProperty (columnName , Types .DOUBLE , propertyGetter , new IdentityConverter ());
158+ mapProperty (columnName , Types .DOUBLE , propertyGetter , new IdentityConverter <> ());
159159 }
160160
161161 protected void mapDoublePrimitive (String columnName , ToDoubleFunction <TEntity > propertyGetter ) {
162- mapProperty (columnName , Types .DOUBLE , ( entity ) -> propertyGetter . applyAsDouble ( entity ) , new IdentityConverter ());
162+ mapProperty (columnName , Types .DOUBLE , propertyGetter :: applyAsDouble , new IdentityConverter <> ());
163163 }
164164
165165 // endregion
166166
167167 // region Time Functions
168168
169169 protected void mapDate (String columnName , Function <TEntity , LocalDate > propertyGetter ) {
170- mapProperty (columnName , Types .DATE , propertyGetter , new IdentityConverter ());
171- }
172-
173- protected void mapInstant (String columnName , Function <TEntity , Instant > propertyGetter ) {
174-
175- mapProperty (columnName , Types .TIMESTAMP , propertyGetter , new InstantConverter ());
170+ mapProperty (columnName , Types .DATE , propertyGetter , new IdentityConverter <>());
176171 }
177172
178173 protected void mapDateTime (String columnName , Function <TEntity , Timestamp > propertyGetter ) {
179- mapProperty (columnName , Types .TIMESTAMP , propertyGetter , new IdentityConverter ());
174+ mapProperty (columnName , Types .TIMESTAMP , propertyGetter , new IdentityConverter <> ());
180175 }
181176
182177 protected void mapLocalDateTime (String columnName , Function <TEntity , LocalDateTime > propertyGetter ) {
183- mapProperty (columnName , Types .TIMESTAMP , propertyGetter , new LocalDateTimeConverter ());
178+ mapProperty (columnName , Types .TIMESTAMP , propertyGetter , new IdentityConverter <> ());
184179 }
185180
186181 protected void mapTimeWithTimeZone (String columnName , Function <TEntity , OffsetTime > propertyGetter ) {
187- mapProperty (columnName , SqlServerTypes .TimeWithTimeZone , propertyGetter , new IdentityConverter ());
182+ mapProperty (columnName , SqlServerTypes .TimeWithTimeZone , propertyGetter , new IdentityConverter <> ());
188183 }
189184
190185 protected void mapDateTimeWithTimeZone (String columnName , Function <TEntity , OffsetDateTime > propertyGetter ) {
191- mapProperty (columnName , SqlServerTypes .DateTimeWithTimeZone , propertyGetter , new IdentityConverter ());
186+ mapProperty (columnName , SqlServerTypes .DateTimeWithTimeZone , propertyGetter , new IdentityConverter <> ());
192187 }
193188
194189 // endregion
195190
196191 // region Binary
197192
198193 protected void mapVarBinary (String columnName , int maxLength , Function <TEntity , byte []> propertyGetter ) {
199- mapProperty (columnName , Types .VARBINARY , maxLength , 0 , false , propertyGetter , new IdentityConverter ());
194+ mapProperty (columnName , Types .VARBINARY , maxLength , 0 , false , propertyGetter , new IdentityConverter <> ());
200195 }
201196
202197 // endregion
0 commit comments