The JPA Processor fills the gap between Olingo V4 and the database, by providing a mapping between JPA metadata and OData metadata, generating queries and supporting the entity manipulations.
Apache License 2.0
6
stars
3
forks
source link
PATCH does not work against Entities with @ManyToOne dependecies #38
AFAICS the code first reads a JPA entity, then merges PATCH data with it, and then writes it all back to the DB.
But @ManyToOne is not being read unless $expand=* present.
So if nothing is in the PATCH data for those foreign keys then it end up writing NULLs to foreign keys and fail on NOT NULL constraints.
AFAICS the code first reads a JPA entity, then merges
PATCH
data with it, and then writes it all back to the DB. But@ManyToOne
is not being read unless$expand=*
present. So if nothing is in thePATCH
data for those foreign keys then it end up writingNULLs
to foreign keys and fail onNOT NULL
constraints.