Konstantin,

With all due respect, it might be trivial, but wasting time maintaining XML files (and remembering to keep them in sync) is not productive either. That is precisely why we have XDoclet - to do trivial and mindless creation of XML and interface and other source files. And I would be perfectly happy to port this to xdoclet-2 as soon as the team either releases a build, or arranges their maven configuration so it can actually build cleanly out of CVS. There is a new template I want to write generating web service classes for Spring that I would love to do in XDoclet2.

I have my environment set up so all I do is create a persistent Hibernate object using a file template in IDEA. The build script drops and re-creates the tables using the SchemaExportTask. It loads data into the tables using DBUnit from an XML file. Both a jboss-service.xml file is generated for deployment to JBoss, and a hibernate.cfg.xml is created for unit tests outside the container. Saves me a lot of time.

My latest enhancement, which I have not been able to get checked in (Andrew Stevens seems to be the only person actively updating XDoclet 1.2) allows specifying a list of external hbm.xml files to be added to the list of mapping files. This allows a SessionFactory to include tables from another project such as OpenSymphony's PropertySet or OSWorkflow projects. If I could get Ant 1.6.1 to work with XDoclet 1.2, it could actually construct the list of external hbm.xml files from a ZipFileSet of .jars. Unfortunately there is apparently a classloader or otherwise difficult bug involved [ http://issues.apache.org/bugzilla/show_bug.cgi?id=26310 ].

But, Keven, glad you like the template.

Fred.

Konstantin Priblouda wrote:

--- Kevin Hagel <[EMAIL PROTECTED]> wrote:


I'm using hibernatecfg, a subtask in CVS head
version of xdoclet. Seems to work, I particularly like it being able to find
the mapping files without my having to specify each. Mostly for
springframework applicationContext.xml stuff.
I don't see it mentioned on the xdoclet.sourceforge
website though. Is this just an experiment, can I count on it being
there tomorrow?



it's not an experiment. but it's mostly not needed. ( this CFG file is trivial, and done per hand faster
than generated. )


And new upcoming xdoclet-2 plugin does not feature
this
configuration creation

regards,

=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verst�rkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] f�r die Festanstellung. Arbeitsort: Mainz Skills: Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------


__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user







-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to