plantuml / backlog

Contains all issues for plantuml that are not currently working-in-progress
0 stars 0 forks source link

Relation between field and class in ortho linetype #5

Open entropitor opened 6 years ago

entropitor commented 6 years ago

It should be possible to define the relation between a field and a class, not just between classes

@startuml
entity users {
  id: Integer
  created_at: Timestamp
}

entity user_settings {
  user_id: Integer
  setting_key: String
  setting_value: String
}
user_settings : user_id -- users
@enduml

or

@startuml
entity users {
  id: Integer
  created_at: Timestamp
}

entity user_settings {
  user_id: Integer -- users
  setting_key: String
  setting_value: String
}
@enduml
arnaudroques commented 6 years ago

You can use

@startuml
entity users {
  id: Integer
  created_at: Timestamp
}

entity user_settings {
  user_id: Integer
  setting_key: String
  setting_value: String
}
user_settings::user_id -- users
@enduml

http://www.plantuml.com/plantuml/uml/LOun2iCm40JxUyLzm1-uoctgf1SYMeom9OAq2fZWlqV49jZTtIopx5Zf2rjQ19cHgxQAKlKZgZ6OtZ8neVJlMU29u3nD7p6XU-abcvmzLq76FEt-ZrnBZjpDM4tlBFq-qRTV6lvyaqkbsT6dmx2Fb14vzELV

Is this what you are looking for ?

entropitor commented 6 years ago

Yes, indeed!

It doesn't work very well with the ortho linetype though 😞

http://www.plantuml.com/plantuml/uml/LOz12eD034NtEKKku0LcKTnstUvbg1yRd1ab4mj3yUuELOhkalVvZwJDvjMM62YFacQlFdAG12ipU59xJuHaOeMN3Cty9MRf7T-JOO3MxQNmXhxpvlWf4LKOPrhftEiop2GDU_z7hf8ZxqOKnm_JEf_enuS5VxxIHUdSuUEckUrNKelKrvys

logistic-bot commented 1 year ago

Is there a known fix when using the ortho linetype?