On 09.06.11 15:45, "Johannes Stark" <[email protected]> wrote: >But one big problem for us is that you are not able to reference a node >until it is persisted. We also had a look at transactions: same issue. >Referenceable nodes will get their uuid not before the transaction is >committed. So we are not able to persist two or more content items with >references to each other within the same transaction. Well this behavior >is totally in accordance to the spec.
Use path/string references instead of hard references solves this easily (plus you need to adapt those references in your application if things move, but that is usually not very difficult). See also http://wiki.apache.org/jackrabbit/DavidsModel#Rule_.235:_References_conside red_harmful. Regards, Alex -- Alexander Klimetschek Developer // Adobe (Day) // Berlin - Basel
