Menu

#4 Process for composite key (parent key + number) does not work

0.8.4
closed
None
2014-02-10
2014-02-10
No

Process for composite key (parent key + number) does not work

Discussion

  • Yves Drumbonnet

    Yves Drumbonnet - 2014-02-10
    • status: open --> closed
     
  • Yves Drumbonnet

    Yves Drumbonnet - 2014-02-10

    Change the way to compute composite key.
    Add a column compositeKeyStrategyFactoryClassName in tree entityTree.
    By default, in EntityScenario class, a standard composite key factory is set when a key (parent key, increment) is detected.

    Developers can write their own composite key strategy and link it to Entity type.
    An other simplest way is to define a Callfore class (callback launched from the client side) or a Callback (server side) which computes the key (identifier) for the persisted bean.

     

Log in to post a comment.

MongoDB Logo MongoDB