session.query(ObjectRes).filter(ObjectRes.id == session.query(func.max(ObjectRes.id)))
obj = session.query(ObjectRes).order_by(ObjectRes.id.desc()).first()