--- Kevin Hagel <[EMAIL PROTECTED]> wrote: > Are you using cvs head version of xdoclet? > I've published this on one of my servers, built from > the latest & > greatest cvs head version XDoclet 1.2 > http://hagelnx.com/hagelnx-site/reference/xdoclet/ant/xdoclet/modules/hibernate/HibernateCfgSubTask.html > > > I find this hibernatecfg task very useful, it > discovers the mapping > files for you, builds a <hibernate-configuration> > that you can load as a > single resource. > Unfortunately you will not find it in the standard > xdoclet binary > distribution.
This is exactly what I am looking for. Sorry but I do not understand, the source code for this is on the last CVS code ? > > > Andre Selton wrote: > > >--- Konstantin Priblouda <[EMAIL PROTECTED]> > wrote: > > > > > >>After all, when xdoclet generates it it just does > >>not > >>matter if it is one, or more. It ends up buried > deep > >>into package hierarchy of distribution jar file, > >>and hibernate loads it automagically. > >> > >> > >> > > > > I was reading on this message : > > > >http://www.mail-archive.com/[EMAIL PROTECTED]/msg07546.html > > > > I am a newbie hibernate developer, so I can be > >missing something obvious. > > > > But have we a way of load all classes with a > single > >command with one mapping file per class. > > If I have a single file I can do a simple : > > > >Configuration cfg = new > >Configuration().addResource("hibernate.xml",this.getClass().getClassLoader()); > > > > to load all my configurations. > > > > But with many config files I need to do : > > > > Configuration cfg = new > >Configuration().addClass(MyClass1.class).addClass(MyClass2.class).addClass(MyClass3.class); > > > > It can find the mapping files, but I need to tell > >the name of each class in the process. I do not > think > >this is the automagically feature Konstantin was > >talking about. > > How this magic happens ? __________________________________ 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
