For those who want to take this a step further, we use Ant call xdoclet to
create the *.hbm.xml files.  These files are then jarred into a single file. 
Since one can specify jar files as mapping resources in hibernate.cfg.xml, this
simplifies having to add each one.  The only quirkiness is that the jar files
needs to be in WEB-INF/classes for a webapp, not WEB-INF/lib.

FWIW: Spring 1.0M3 now supports mapping resources as jar files.


Cheers,
  matthew

Quoting [EMAIL PROTECTED]:

> only if you want to have your mappings dynamically generated from code.
> you can jsut as easily create the mapping an generate the code (the
> reverse),
> or simply hand code pojo+mapping xml. 
> I do the opposite of the xdoclet thing and generate my pojo's from the
> mapping.
> 
> on Nov 25, 2003 at 11:39:36AM -0600, Jason Carreira wrote:
> > Yes, I think so... I've never seen the point in that, myself, but to
> > each his/her own.
> >
> > > -----Original Message-----
> > > From: Robert Nicholson [mailto:[EMAIL PROTECTED] 
> > > Sent: Tuesday, November 25, 2003 12:27 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [OS-webwork] Anybody seen Mike's book yet?
> > > 
> > > 
> > > Is XDoclet used to develop the xml config for Hibernate?
> > > 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to