java - How to use Degraph to graph only models -
i want generate relationship graph among model classes using degraph.
here representative example model, pojo taskentryimpl relates 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.pojo part of package name:
com.somepackage.events.model.pojo.durationimpl au.com.anotherpackage.ecrm.model.pojo.payphoneimpl how graph of models meet abovementioned characteristics?
for curious: wish have entity-relation diagram instead.
these model classes wired hibernate orm. original developers maintained sql independent of codebase , have never used foreign keys. rules out getting entity-relation diagram database schema.
create file pojo.config following content
output = pojo.graphml classpath = yourlib.jar include = **.model.pojo.** for getting started i'd put file straight in bin directory of degraph.
the classpath value must point byte code want analyze, either jar-file or directory, contains class-files.
now run (again bin directory):
degraph -f pojo.config degraph should print out number of classes found , create file pojo.graphml in current directory (i.e. bin). can open yed.
see documentation of degraph how create useful layout yed.
note degraph create boxes packages , put boxes classes these package boxes. can open package boxes , delete package boxes, if don't them.
Comments
Post a Comment