You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to return the transactionUser with the transaction inside it and the list of transaction users, but on the internal list of transaction users only want to output their id not the name property. Is there a way to handle this type of serialization?
I currently have a class called User that has a Transaction like so:
And a transaction class:
I return the TransactionUser in my rest controller like so with the serialization group of transaction and transactionUser:
I would like to return the transactionUser with the transaction inside it and the list of transaction users, but on the internal list of transaction users only want to output their id not the name property. Is there a way to handle this type of serialization?
Also it currently outputs it like so:
But I would like this:
The text was updated successfully, but these errors were encountered: