in a Google app application, when a user purchases several contracts, these events are executed (simplified for clarity):
in rdms, they will be placed in one transaction. I believe google repository does not allow entities from more than one model to be in one transaction.
What is the correct approach to this problem? How can I guarantee that if a record fails, all previous records will be rolled back?
edit: I obviously missed entity groups. Now I would like more information on how they are used. Another point that needs to be clarified is that Google says, “Use only groups of objects when they are needed for transactions. For other relationships between objects, use the ReferenceProperty properties and Key values that can be used in queries.” Does this mean that I have to define both the reference property (since I need to double-check them) and the parent-child relationship (for transactions)?
edit 2: and finally, how to define two parents for an entity if an entity is created to establish an n-to-n relationship between two parents?
, google , . java.
Datastore:
, .
- . .
shanyu, , . , . erick armbrust . dan .
nick johnson "" , , . , -, .
, , , . , . , dan erick, , .
: 1) , / (.. ). , , . , .
2) . "--", , , ListProperty (.. ). . .
Source: https://habr.com/ru/post/1707904/More articles:Why does PHP XPath not find table elements, although Firefox shows that they exist? - domActionScript 3.0 Best option for subclassing a vector class (Flash Player 10) - arraysHow to programmatically merge two aac files into one? - pythonTomcat: java.security.Principal implementation - javaModal search popup to replace an ASP.NET dropdown control - searchWhat is the method for optimizing individual functions in a file in GCC 4.1.1? - c ++I want to find a computer language with a common name - programming-languages | fooobar.comEmulation of virus-like behavior? - emulationКак изменить прокси-сервер по коду - c#Is there a Log4J Layout / Formatter that handles stack traces for exceptions? - javaAll Articles