google-nomulus/core
gbrodman 7a5ff79cb1 Copy DTRs into PersistentSet field if applicable in HistoryEntry (#1456)
In replay (and possibly in other cases) we're getting an exception:

Caused by: org.hibernate.HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: google.registry.model.domain.DomainHistory.internalDomainTransactionRecords

The main cause of this, according to research (StackOverflow :P) is that
when Hibernate is calling the setters for these sets of children it's
losing the connection to the previously-managed child entity (which it
needs, in order to know how to delete orphans). Thus, the solution is to
maintain the same instance of the persistent set and just add/remove
to/from it as necessary.

This is complicated by the fact that sometimes the setter is given the
persistent set (the one we want to keep) and sometimes (?) it isn't. We
will need to try this out to be sure.
2021-12-09 11:56:58 -05:00
..
gradle/dependency-locks Implement a util class to manage push queues using Cloud Tasks API (#1290) 2021-08-24 21:13:54 -04:00
src Copy DTRs into PersistentSet field if applicable in HistoryEntry (#1456) 2021-12-09 11:56:58 -05:00
build.gradle Validate SQL with Datastore being Primary (#1436) 2021-11-30 12:57:49 -05:00
Dockerfile Build docker image of nomulus tool (#142) 2019-07-16 20:18:44 -04:00