-2

대학 프로젝트를 위해 주어진 요약본에서 ER 다이어그램을 설계하려고합니다.유형에 따라 속성이 다른 엔티티?

나는이 문제를 처리하는 방법을 혼란 스러워요 :

내가 지금까지에 가지고이 솔루션은이 같은 관계로이 약한 엔티티를 모두 만드는 것입니다
The items sold in the Food Truck can be of different types: burritos and 
beverages. Every item have an ID, a description and a price. Assume that every 
Food Truck has infinite stock of each item (i.e. we do not need to track stock levels 
in each Food Truck). 
All Burritos come with rice, a type of bean, a filling, and a set of optional 
toppings. Burritos are priced by size (Mini, Regular, and Grande). Bean types will 
vary. Chipp will start by offering two types: black beans and red beans. Burrito 
fillings will vary (depending on the season). There are at least 3 types of Burrito 
fillings and there should be a vegetarian option. 
A Burrito may optionally have toppings: lettuce, tomato, and mild and hot 
salsa. Toppings are free, but Chipp will also offer guacamole as a topping for which 
there is an extra charge. 
The Food Truck also sells different types of refreshing beverages, both 
alcoholic and non-alcoholic. All beverages have a size measured in milliliters (just in 
case Chipp takes his Food Truck business over the Channel to mainland Europe). 

:

enter image description here

문제를 해결하는 올바른 방법입니까?

답변

1

첸의 원래 표기법에는 하위 유형 지정을위한 기호가 없습니다. 취약한 키가없는 약한 개체 집합도 동일한 결과를 산출했습니다. 귀하의 접근 방식은 해당 프레임 워크 내에서 정확합니다. 그러나 동일한 원래 표기법에서 약한 엔티티 집합은 관계를 식별하는 것과 관련되어 있으며 (이중 테두리가있는 다이아몬드) 전체 참여는 엔티티 집합과 관계 사이에 이중선으로 표시됩니다 (카디널리티 표시기의 (최소, 최대) 스타일보다는 . 이것은 원래 표기법을 고수하는 것은 좋지 않지만,이 점에 대한 귀하의 교과서에 대한 답변을 확인하는 것이 좋습니다.

하위 유형 지정을 나타내며 원래 표기법으로는 표시 할 수없는 분리를 나타 내기 위해 다양한 확장 표기법이 개발되었습니다. 이 중 하나가 커리큘럼에서 다루어지면, 더 표현력이 풍부한대로 사용하는 것이 좋습니다.

귀하의 다이어그램에는 아직 포함되지 않은 아보카도에 대한 추가 비용 요구 사항에 유의하십시오. 마지막으로 price를 item의 파생 된 속성으로 표시했지만 계산할 수있는 다른 속성은 표시되지 않습니다.