exxcellent / olingo-jpa-processor-v4

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

Open guai opened 3 years ago

guai commented 3 years ago

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.

wyatterp365 commented 2 months ago

wyatterp365@gmail.com