Skip to content

Commit 2531e56

Browse files
author
Gerald Unterrainer
committed
fix http-server bug that was calling the wrong Serialization-overload for fullupdate
1 parent 0caa76e commit 2531e56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/info/unterrainer/commons/httpserver/GenericHandlerGroup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private void fullUpdate(final Context ctx) throws IOException {
184184
DaoTransaction<E> transaction = dao.getTransactionManager().beginTransaction(ctx);
185185
P jpa = hu.getJpaById(ctx, transaction.getManager(), dao);
186186
try {
187-
P detachedJpa = objectMapper.map(jpaType, jpaType, jpa);
187+
P detachedJpa = objectMapper.map(jpaType, jpa);
188188
J json = jsonMapper.fromStringTo(jsonType, ctx.attribute(Attribute.REQUEST_BODY));
189189
P mappedJpa = objectMapper.map(jpaType, json);
190190
mappedJpa.setId(jpa.getId());

0 commit comments

Comments
 (0)