--- 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 ? Danilo. __________________________________ 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
