Comment 4 for bug 1541928

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/275790
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=4b227c3771eba1cbaa27c6c33829108981cd9b69
Submitter: Jenkins
Branch: master

commit 4b227c3771eba1cbaa27c6c33829108981cd9b69
Author: Artur Korzeniewski <email address hidden>
Date: Tue Mar 1 12:07:15 2016 +0100

    Objects DB api: added composite key to handle multiple primary key

    Moving CRUD DB operation for objects from db/api.py to objects/db/api.py
    Renaming object get_by_id(id) to get_object(**kwargs)

    Many models in Neutron DB have complex primary keys, concatenated from
    a few properties. This patch adds ability to define multiple primary keys
    in NeutronDbObject, which are automatically evaluated into DB query
    when performing operations.

    Partial-Bug: #1541928
    Change-Id: I0f63a62418db76415ddd40c30c778ff7541b93dc