Software System Analysis and Design | 6
1、使用类图,分别对 Asg-RH.pdf 文档中 Make Reservation 用例以及 Payment 用例开展领域建模。而后,根据上述模型,给出建议的数据表以及主要字段,特别是主键和外键
-
注意事项:git
- 对象必须是名词、特别是技术名词、报表、描述类的处理;
- 关联必须有多重性、部分有名称与导航方向
- 属性要注意计算字段
Make Reservation

Payment

-
数据建模github
- City(ID/Key,name,country,province)
- Hotel(ID/key,name,address,star,brife introduction,CityID/Fkey)
- Room(ID/key,type,date,reserved number,total number)
- Reservation(ID/key,guest name,check in date,HotelID/Fkey)
- Reservation-Item(ID/Key,type,number of nithet,adults,childrens,child-age,RoomID/Fkey,ReservationKey/FKey)
- Payment(ID/Key,payment method,security code,expiry date,title,name,address,phone,ReservationKey/FKey)
使用 UML State Model,对每一个订单对象生命周期建模

欢迎关注本站公众号,获取更多信息