T * DataMapper<Subclass, T, I>::get(const Identity & id)
{
    if (m_identities.hasModel(id))
    {
        return m_identities.getModel(id);
    }

    return getBy(identityFieldName() + " = " + QVariant(id).toString());
}
Example #2
0
 const JSONValue JSONObject::operator [] ( const String& key ) const{
   return getBy( key );
 }