JetBrains / JetBrains/Exposed

Problem with parsing Entity after insertion

Open
#1,155 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
9.3k
Forks
798
Avg merge
4d 2h
Merged PRs (30d)
26

Description

After adding an item to local database using the DAO api via the `new` keyword, the item is added no problem with that but when i try the return the response using `call.respond` this error is displayed :
` class declares multiple JSON fields named primaryKey$delegate`
Using `Gson` as `ContentNegotiation` and exposed version 0.29.1, the `Gson` can't parse the returned object after insert operation.
**Work around fix: I added an other data class and parse the `IntEntity`**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.