从属的关系

User     Order

:关联关系体现:

1> 实体之间:关系属性

2> 表之间:外键

    User       

    id

name

age

Order order;//用来描述关联关系的【关系属性】

Order

id

price

note

User user;//用来描述关联关系的【关系属性】

:关系的方向性:

*单向

*双向

:关系的类别:

*    1:1

    student         computer

       1                     1 

*    1:*

user                order

  1                      *

*    *:*

student          course

               *                     *

 

登录乐搏学院官网http://www.learnbo.com/

或关注我们的官方微博微信,还有更多惊喜哦~

关联关系映射

本文出自 “12691034” 博客,请务必保留此出处http://12701034.blog.51cto.com/12691034/1929248

转载于:https://my.oschina.net/learnbo/blog/914847

相关文章:

  • 2021-09-14
  • 2021-10-03
  • 2021-09-26
  • 2021-11-24
  • 2021-11-21
  • 2021-10-11
  • 2021-11-14
  • 2022-12-23
猜你喜欢
  • 2021-09-24
  • 2022-01-29
  • 2021-12-13
  • 2021-08-02
  • 2021-08-23
  • 2022-12-23
相关资源
相似解决方案