What is the difference between ovm_transaction and ovm_sequence_item?

In reply to mpattaje:

hello patteji,

below example is your previous reply (24 july ), in this example you asked me to create transactions wap and wdp( wap,wdp extends ovm_transaction)inside my_sequence( extends ovm_sequence).

in the yesterdays reply you asked me not use ovm_trasactions.

According to you what actually wap is extending from in the below example.???
###############################################################################

virtual task body();

wap = write_waddr_phase::type_id::create(“wap”);
wdp = write_waddr_phase::type_id::create(“wdp”);

start_item(wap);
wap.set_transaction_id(1);
assert(wap.randomize());
finish_item(wap);

start_item(wdp);
wdp.set_transaction_id(1); // I hope you want to give same ID for a seq
assert(wdp.randomize());
finish_item(wdp);

endtask
###############################################################################