Skip to Content
author's profile photo Former Member
Former Member

Changes Persistence API SP1->SP2

Hi!

I'm currently porting a persistence SP1 application to persistence SP2.

SP1 API was pretty clear and easy to understand.

SP2 API has deprecated loads of methods and introduced incompatibilities but neither new examples nor updated docs are available.

Will there be an updated documentation for the persistence layer?

What is the PersistedObject2 used for?

How should it be handled in Entity2? How is TransactionManager/2 to be used? Start Transaction in TransactionManager and Commit it in TransactionManager2?

Can I ignore all those "2" objects?

Why do circular linked objects not work anymore:

Customer has linked list of salesorders, salesorder has link to Customer object.

Loading the customer as DEPENDENT or COMPLETE, leads to recursive loading of customer/salesorder, recursion is stopped by a "OutOfStack"-Exception.

Questions over questions. Anyone has answers/hints/pointers/code?

Best regards,

Thomas

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 06, 2004 at 12:04 PM

    Hi,

    The circular link problem just changed:

    SP2 allows a circular reference if one of the referenced objects is dependend of its source and one is not (eg Order dependends on Customer, but Customer does not depend on Order)

    SP1 allows, that both objects depend on each other.

    Best regards,

    Thomas Strauß

    Message was edited by: Thomas Strauß

    Add comment
    10|10000 characters needed characters exceeded