You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Matthias David <Ma...@ptv.de> on 2003/01/23 10:52:30 UTC

Macro library

Hi,

I'm just writing some velocity templates for Java Source code. Now I'm
wondering if maybe someone has already written some useful macros for this
case or knows where I could get them?
I'm thinking of useful helper macros that could for example build up method
headers, e.g. print type and name seprarated by commas except for the last
entry.

Thanks,
 Matthias.

Re: Macro library

Posted by Russell Black <rb...@iarchives.com>.
There's also a sourceforge project called middlegen, similar to UML2EJB,
except it operates
on an existing DB schema.  It inspects your database and makes the
appropriate EJBs.

http://boss.bekk.no/boss/middlegen/

----- Original Message -----
From: "Torsten Juergeleit" <tj...@yahoo.de>
To: "Velocity Users List" <ve...@jakarta.apache.org>
Sent: Thursday, January 23, 2003 10:13 AM
Subject: Re: Macro library


> Some interesting Velocity templates for J2EE-related
> Java code are provided by UML2EJB
> (http://uml2ejb.sourceforge.net/ ). UML2EJB is a set
> of Ant tasks used to generate EJB implementation
> classes (and other stuff) via Velocity templates from
> UML models.
>
> Torsten
>
> On Thu, 23 Jan 2003, Matthias David wrote:
> > Hi,
> >
> > I'm just writing some velocity templates for Java
> Source code. Now I'm
> > wondering if maybe someone has already written
> some useful macros for this
> > case or knows where I could get them?
> > I'm thinking of useful helper macros that could
> for example build up method
> > headers, e.g. print type and name seprarated by
> commas except for the last
> > entry.
> >
> > Thanks,
> >  Matthias.
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Macro library

Posted by Torsten Juergeleit <tj...@yahoo.de>.
Some interesting Velocity templates for J2EE-related
Java code are provided by UML2EJB
(http://uml2ejb.sourceforge.net/ ). UML2EJB is a set
of Ant tasks used to generate EJB implementation
classes (and other stuff) via Velocity templates from
UML models.

Torsten

On Thu, 23 Jan 2003, Matthias David wrote:
> Hi,
> 
> I'm just writing some velocity templates for Java
Source code. Now I'm
> wondering if maybe someone has already written
some useful macros for this
> case or knows where I could get them?
> I'm thinking of useful helper macros that could
for example build up method
> headers, e.g. print type and name seprarated by
commas except for the last
> entry.
> 
> Thanks,
>  Matthias.


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Macro library

Posted by Barbara Baughman <ba...@utdallas.edu>.
I am attaching a template I use to create a Home class for an EJB (older
API).  It has some commonly used code for building java code, which you
could translate to macros.

Barbara Baughman
X2157

On Thu, 23 Jan 2003, Matthias David wrote:

> Hi,
> 
> I'm just writing some velocity templates for Java Source code. Now I'm
> wondering if maybe someone has already written some useful macros for this
> case or knows where I could get them?
> I'm thinking of useful helper macros that could for example build up method
> headers, e.g. print type and name seprarated by commas except for the last
> entry.
> 
> Thanks,
>  Matthias.
>