Description
Hello, I am using spring-data-relational 2.2.11
with Postgres and I am having an issue where I have a child @Column
that maps to a different Java class that is annotated with @Table
and that table is a view.
This works fine for retrieval, but for some reason when I attempt to modify the parent and use parentNameRepository.save(), it attempts to run a delete statement against the child. This then throws an error because it is attempting to delete from a view. @ReadOnlyProperty
does not appear to prevent this delete statement and neither does annotation the child class with @Immutable
.
For now the our work are either to create triggers at the DB level that ignores this delete generated delete statement, or just iterate over the parent and set a @Transient
field with a repository call for the view. (not ideal).
I found that there was an old ticket for ignored @ReadOnlyProperty
DATAJDBC-431