The only viable solution I found is to transfer to json and reparse the
json to java bean.
Because of json ignore field annotation i can then transfer my bean using
dubbo without having a lazy loading out of transaction error.
That would be cool to have a Dubbo ignore field annotation.

Le mar. 8 mars 2022 à 11:36, Daniel SAWAN <[email protected]> a écrit :

> Hi ! Thanks for your reply.
> The problem with @transient is that it also affects JPA beans.
> I am looking for something that only affects Dubbo.
>
> Le mar. 8 mars 2022 à 09:41, Albumen Kevin <[email protected]> a écrit :
>
>> @JsonIgnore is only works in json serialization. If you want to ignore
>> some
>> fields, you can try to use the `transient` modifier.
>>
>> On Sat, Mar 5, 2022 at 4:29 AM Daniel SAWAN <[email protected]>
>> wrote:
>>
>> > Hello,
>> >
>> > I am actually learning Dubbo 3 and I was wondering if there is an
>> > equivalent to @JsonIgnore annotation to put on a bean field in order to
>> > ignore its serialisation ?
>> >
>> > Thanks for your help !
>> >
>>
>

Reply via email to