wang xf wrote:Basically, my task a reverse auctioning assignment.
In the domain model diagram, the relationship of Request (I guess it's BidRequest), Bid and PurchaseOrder
Request [1:n] Bid
Bid [1:1] PurchaseOrder
PurchaseOrder [n:1] Request
From text description of the assignment, one Request have only one winning Bid. Bid is a 1:1 relationship to PurchaseOrder. So one Request can have only one PurchaseOrder.
So how could I support PurchaseOrder [n:1] Request in the domain model. I am confused.
Any advice will be highly appreciated.
Bigwood Liu wrote:
wang xf wrote:Basically, my task a reverse auctioning assignment.
In the domain model diagram, the relationship of Request (I guess it's BidRequest), Bid and PurchaseOrder
Request [1:n] Bid
Bid [1:1] PurchaseOrder
PurchaseOrder [n:1] Request
From text description of the assignment, one Request have only one winning Bid. Bid is a 1:1 relationship to PurchaseOrder. So one Request can have only one PurchaseOrder.
So how could I support PurchaseOrder [n:1] Request in the domain model. I am confused.
Any advice will be highly appreciated.
-"one Request have only one winning Bid"
-" one Request might have one won Bid (I don't know if this is required), but one Request has n Bid is declared", so you can't conclude that 1 Req : 1 PO from combining "one Request have only one winning Bid" and "Bid [1:1] PurchaseOrder" . I don't know the context, but I think you have some misunderstanding here.
Bigwood Liu wrote:from
Request [1:n] Bid [1:1] PurchaseOrder
it is very intuitive that I conclude: Request[1:n]PurchaseOrder, which is exactly:
PurchaseOrder [n:1] Request
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:I'm not sure how to help without talking about the assignment too much. Maybe if you elaborate about the conflict with the use case, someone can validate or point to a flaw in your logic?
wang xf wrote:[I have provided the domain model and the use case above. My question is the domain model is conflicting with the test case from my understanding.
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:
wang xf wrote:[I have provided the domain model and the use case above. My question is the domain model is conflicting with the test case from my understanding.
I'm sorry. I think I am missing the obvious here. Which is the test case?
wang xf wrote:My question is the domain model is conflicting with the test case from my understanding.
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |