What is the result if addItem on the repository is never called after createItem call?

What is the result if addItem on the repository is never called after createItem call?

What is the result if addItem on the repository is never called after createItem call?

A.
The item is not persistedindatabase.

B.
It is saved automatically when transaction commits.

C.
The item is saved when the server shuts down.

D.
It is illegal and an exception is thrown.

Explanation:
CreateItem returns a new item populated with the supplied id.
The new item is not added to the repository; addItem must be called in order to change the
repository.
atg.repository, Interface MutableRepository



Leave a Reply 0

Your email address will not be published. Required fields are marked *