-
Notifications
You must be signed in to change notification settings - Fork 222
Closed
Labels
status: pr submittedA pull request has been submitted for the issueA pull request has been submitted for the issuetype: bugSomething isn't workingSomething isn't working
Milestone
Description
DefaultJdbcRepositoryOperations serialized JSON column in updateOne method using toString instead of using jsonCodec, this leads to error during SQL execution.
Steps to Reproduce
- Create @MappedEntity Order and give it attribute with another class type e.g. "Address shippingAddress" and annotated with @typedef(type = DataType.JSON)
- Insert an entity
- Update the entity and attempt to store it via Repository.update(entity) method
``
Expected Behaviour
The 'Address' object is properly serialized to JSON and the DB table is updated
Actual Behaviour
The 'Address' object is serialized via toString() and the update SQL fails
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status: pr submittedA pull request has been submitted for the issueA pull request has been submitted for the issuetype: bugSomething isn't workingSomething isn't working