English 中文(简体)
自愿继承 建模
原标题:Hibernate Inheritance Modeling

我在为解放和数据库中停下来的两家实体树立榜样方面遇到困难。 感谢任何帮助。

有一个公司实体和表格,提供公司名称和“公司代码”。 公司法典必须是独一无二的。

公司可充当2个不同的实体、客户或伙伴。

我们有单独的客户和伙伴实体。

我看到的复杂因素

(1) 公司既可以是客户,也可以是伙伴。

2) 公司法典必须保持独特性。

3) 我们希望能够创建新的客户和伙伴,通过公司编码作为参数。 例如,新客户(“WALMART”)和新的合伙人(“WALMART”)应向同一公司进行测绘。

单价和多价证券不发挥作用,因为它们没有向一家公司标有相同公司代码的商家和客户地图。

感谢大家。

问题回答

您能否收到一份公司表格,表明合伙人和客户实体有多到一链接? 这将使你能够把公司设在伴侣和客户上,作为描述者(更不用继承,但更接近打字)。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签