Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Is it possible to create (entity) tables with yEd?

0 votes
In particular, in an Entity Relationship diagram, how can I model tables that show attributes with their field details?
asked Sep 21, 2011 in Help by yEd user (3,340 points)
retagged Mar 8, 2012 by michael

1 Answer

+2 votes
 
Best answer
You can model the tables in an Entity Relationship diagram using labels with HTML markup inside. This allows you to easily show attributes with their field details.

The following HTML markup in a label creates a table that shows attribute names of an entity together with their field details:

<html><table>
<tr><td>wln_site_nbr</td><td>NUMBER(6)</td><td>&lt;&lt;PK>></td></tr>
<tr><td>wln_site_bldg_clli_cd</td><td>VARCHAR2(8)</td><td></td></tr>
</table>

You can use this markup in the second label of an "Entity with Attributes" symbol from the Entity Relationship palette section, for example:


Entity with some attributes and their field details

...but also in labels of any other node representation.

 

answered Sep 21, 2011 by thomas [yWorks] (23,660 points)
edited Nov 15, 2017 by thomas
Imprint | Privacy Policy