租一个电影实体 [英] renting a movie entity

查看:183
本文介绍了租一个电影实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里我有一个电影实体,具有我需要的所有属性。我无法理解的是如果DVD商店有多个副本和每个电影的不止一种格式。例如,这些电影的每个副本都使用Movie_ID和项目副本号的组合进行标识。所以我的意思是当一个客户出租一个电影项目时,他/她实际上租了一部电影,叫做一个项目。示例:蝙蝠侠是一部电影,但是你的DVD在家里是一个项目。那么令我迷失的是,客户可以根据他/她的配额租用相同的不同电影项目的副本。这样我可以做到吗如果没有,那么有什么方法呢?

Here I have a Movie entity with all the attributes I need. What I am having trouble understanding is what if the DVD store has more than one copy and more than one format of each movie. For example, each copy of these movies is identified with the combination of Movie_ID and item copy number. So what I mean is when a customer rents a Movie Item, he/she actually rents a copy of the Movie - called an item. Example: "Batman" is a Movie...but your DVD copy at home is an Item. So what gets me lost is a customer can rent copies of the same of different Movie Items according to his/her quota. Is this ok what I did ? If not, what is one of the ways to do it ?

推荐答案

Hop模式帮助你:

Hop the draft model helps you:

这篇关于租一个电影实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆