Ground Sunlight

Windowsで作る - PHPプログラミングの開発環境

ユーザ用ツール

サイト用ツール


eclipse:plant-uml

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
eclipse:plant-uml [2021/02/11 14:56]
y2sunlight
eclipse:plant-uml [2021/02/11 22:16] (現在)
y2sunlight [EclipseでER図を作る]
行 1: 行 1:
-====== EclipseでPlantUMLを使いER図を書く ======+====== EclipseでPlantUMLを使いER図を作成する ======
 Eclipse Version 2019-12 \\ Eclipse Version 2019-12 \\
 PlantUML Plug-in Version 1.2019.11 \\ PlantUML Plug-in Version 1.2019.11 \\
行 132: 行 132:
  
   * 名前 --- ''plantuml''   * 名前 --- ''plantuml''
-  * ロケーション --- ''http://hallvard.github.io/plantuml/''+  * ロケーション --- ''<nowiki>http://hallvard.github.io/plantuml/</nowiki>''
  
 [{{:eclipse:plant-uml:plant-uml-install12.png?nolink}}] [{{:eclipse:plant-uml:plant-uml-install12.png?nolink}}]
行 149: 行 149:
 \\ \\
  
-===== EclipseでER図を作る =====+===== EclipseでER図を作成 =====
  
-例としてEclipseでER図を作ってみます。+それでは、EclipseでER図を作ってみます。
  
 Eclipseで任意のプロジェクトを開き、以下のようなファイルを作ります。 Eclipseで任意のプロジェクトを開き、以下のようなファイルを作ります。
  
-{{fa>file-o}} ''sample1.txt'' +<code - sample1.txt>
-<code - er.txt>+
 @startuml @startuml
 Entity01 }|..|| Entity02 Entity01 }|..|| Entity02
行 172: 行 171:
 以下は、もう少し複雑なER図の例です。 以下は、もう少し複雑なER図の例です。
  
-{{fa>file-o}} ''sample2.txt'' +<code - sample2.txt>
-<code - er.txt>+
 @startuml @startuml
-Entity01 }|..|| Entity02 + 
-Entity03 }o..o| Entity04 +' hide the spot 
-Entity05 ||--o{ Entity06 +hide circle 
-Entity07 |o--|| Entity08+ 
 +' avoid problems with angled crows feet 
 +skinparam linetype ortho 
 + 
 +entity "Entity01" as e01 { 
 +  *e1_id : number <<generated>> 
 +  -- 
 +  *name : text 
 +  description : text 
 +} 
 + 
 +entity "Entity02" as e02 { 
 +  *e2_id : number <<generated>> 
 +  -- 
 +  *e1_id : number <<FK>> 
 +  other_details : text 
 +
 + 
 +entity "Entity03" as e03 { 
 +  *e3_id : number <<generated>> 
 +  -- 
 +  e1_id : number <<FK>> 
 +  other_details : text 
 +
 + 
 +e01 ||..o{ e02 
 +e01 |o..o{ e03 
 @enduml @enduml
 </code> </code>
  
 +[{{:eclipse:plant-uml:plant-uml-usage02.png?nolink}}]
 +
 +PlantUMLによるER図の書き方については、以下を参照して下さい:
  
 +  * https://plantuml.com/ja/ie-diagram --- ER図の文法
  
 +PlantUMLのER図は、クラス図の派生物的な扱いなので、クラス図に関する書き方がそのまま利用できます。
  
-https://plantuml.com/ja/ie-diagram+  * https://plantuml.com/ja/class-diagram --- クラス図の文法
  
 \\ \\
  
eclipse/plant-uml.1613022989.txt.gz · 最終更新: 2021/02/11 14:56 by y2sunlight