How to use graphics only for graphs

I want to create a graph of relationships between model classes using degraph.

Here is an example sample POJO TaskEntryImpl model that relates to a Task:

package com.packag.tm.model.pojo;
public class TaskEntryImpl implements TaskEntry,Serializable {

    private Integer id;
    private Task task;

    public Task getTask() {
        return this.task;
    }
    public void setTask(Task v) {
        this.task = v;
    }

Packages containing models have model.pojoas part of the package name:

com.somepackage.events.model.pojo.DurationImpl
au.com.anotherpackage.ecrm.model.pojo.PayphoneImpl

How do I get a graph of models that match the above specifications?


For the curious: I would like for me to have an entity binding diagram.

These model classes are associated with the Hibernate ORM. Source developers supported SQL regardless of the codebase and never used foreign keys. Thus, this eliminates the receipt of entity relationship diagrams from the database schema.

+1
source share
1 answer

pojo.config

output = pojo.graphml
classpath = yourlib.jar
include = **.model.pojo.**

bin Degraph.

classpath , , jar , .

( bin):

degraph -f pojo.config  

Degraph pojo.graphml (.. bin). yed.

. Degraph , yed.

, Degraph . , , .

0

All Articles