On 20 Jan (21:52), Henri Tremblay wrote:If anyone can make velocity templates be LESS ugly and get up to level with the java based hbm2java
An existing application is not really easy to convert but it's going pretty well. The first thing that was missing was to be able to create hbm.xml files. I tried class2hbm (and improved it a little) but it wasn't enough. So on my free time I've started a HbmGenerator that creates a hbm.xml file from the class, table and a field mapping between both. It currently goes pretty well. I can map normal fields, user types (that we use a lot) and tonigh I'll try to add associations. So I thought you might be interested to see this app (and possibly add it to the hibernate tool set). What do you think?
Well, I think that the existing tools pretty much cover the same
functionality. I remember that the POJO CodeGenerator (hbm2java) could
need some help with the Velocity templates.
I would welcome it very much....but after making the velocityrender i must say that text template engines like
Velocity don't cut it for hard-core codegeneration, but please try to convince me ;)
/max
<property column="creation_date" value="sysdate"/>
So to be able to hardcode a value in the sql call. But perhaps you have a better idea?
Use a trigger?
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel