Open Bernardo-MG opened 6 years ago
Persistence entities should not be used outside a transaction. This means for example they should not be used to generate JSON messages.
The problem here is that lazy fields may not be initialized before generating the JSON.
There is also the reverse problem. When working with entities inside a transaction a change to the entity may be persisted, even when not stated explicitly.
Persistence entities should not be used outside a transaction. This means for example they should not be used to generate JSON messages.
The problem here is that lazy fields may not be initialized before generating the JSON.