Good afternoon guys,
I'm having a question, I'm trying to persist a JSON via the API:
{
...
"Analise": [{
"nProcAnalitic": "SR-000446/2015",
...
}]
...
}
And the service answers 200:
...
"Analise": [
{
"id": null,
"lotEntity": null,
"nProcAnalitic": "SR-000446/2015"
...
But without creating the object of the listing, only the parent object.
Mapping:
@JsonProperty ("Analyze") @OneToMany (mappedBy="lotEntity") private List analysis;
...
@ManyToOne @JoinColumn (name="id_lot") private LotEntity lotEntity;