Re: Hibernate organize hbm.xml per schema
Eivind Waaler <[email protected]>
| Newsgroups | gmane.comp.java.ejb.middlegen.user |
|---|---|
| Message-ID | <[email protected]> |
I think the easiest way to accomplish this would be to call Middlegen three times, once for each schema. Each of these would have its own Hibernate subtask, that can generate to different packages or even different directories. Something like this: <target name="middlegen"... <taskdef name="middlegen"... <middlegen ... schema="A"> <hibernate destination="A" package="a".../> </middlegen> <middlegen ... schema="B"> <hibernate destination="B" package="b".../> </middlegen> <middlegen ... schema="C"> <hibernate destination="C" package="c".../> </middlegen> </target> Cheers .eivind On Fri, 27 Aug 2004, Ivan Hernández Serrano wrote: > Hi, I'm using middlegen-2.0-vo and the > middlegen-hibernate-plugin-2.0-vo.jar, to generate my hbm.xml mappings > from my db... now, I have several schemas in my database, is there any > way to tell either the middlegen or plugin how to organize the hbm.xml > files. If I have the schemas A, B and C, I would like to get three > directories A, B and C and the corresponding hbm.xml files in them. > > thanks in advance > ivan > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > middlegen-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/middlegen-user > > ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idP47&alloc_id808&op=click