From: Alexandre T. <ale...@gm...> - 2005-06-02 12:11:10
|
Hi. I'm developing the java.tri project, an open source eclipse plugin that=20 improves web application development. The tool is based upon hibernate and= =20 struts, and uses UML class models as a project start point. It may be used= =20 to generate and entire j2ee hibernate application or just parts of it, like= =20 HBM mappings.=20 The java.tri project is now generating hibernate mapping files from UML and= =20 intermediate metamodel. It doesn't implement all possibilities of hibernate= ,=20 but may give a start up to new developers. The plugin has a velocity code generator based in an extensible layered=20 templating system. This code generator is used to generate hibernate=20 mappings, struts based classes and a lot of features, except the Bean=20 classes generated by the hbm2java (becouse hibernate generator is good=20 enought!). It calls the hbm2java (using ant integrated plugin) to generate= =20 the bean classes, and uses the code merge feature of eclipse to selectively= =20 write code. This is an important thing, becose I belive that a good code=20 generator may be used to generate code after the code has been changed. Also it's made to be easyly extensible. Just drop a velocity file in the=20 right directory and you can generate new text files. And being metamodel=20 driven, you can preserve specification and generate the same thing in two= =20 different libraries sets (or even in another programming language...why=20 not?) Well, until now it was a quite "one man's" work. I'd like to help make our= =20 works closely matched, but I don't know if it's an easy task, since java.tricode generator uses EMF eclipse's framework and is coupled with eclipse tool (But it may be decoupled... ). Well, if you have any spare time to take a look in java.tri and give me any= =20 advice (maybe just say it's a junk piece ;-), It will be welcome ! |