So I booked a flight flying on Cathay Pacific but issued on SWISS 724 Ticket stock. Would I be correct in assuming that these flights, because of their flight number range is not CX 0000-0999 are not able to collect miles from a oneworld program? Then should I be collecting off a Star Alliance account instead?
The flight details are below

LH 7015
00:35 HKG

07:50 FRA
Operated by Cathay Pacific AirWays
on behalf of Lufthansa German Airlines
This is a codeshare flight. Different baggage policies may apply, please check the baggage information of this e-mail.
Boeing 777-300er Passenger
Business Basic - C Pre-reserved Seat 22K**

LH 902
Confirmed
09:00 FRA

09:40 LHR
Operated by Lufthansa German Airlines
Airbus 320neo
Business Basic - C Pre-reserved Seat 07F**