On Fri, 2005-04-15 at 10:37, percy christian wrote: > Hallo agian, > > I have some additional information which I forgot in the original post. > First I wanted to correct a little error the <load-groups> are placed in > jbosscmp-jdbc-LeafBean.xml and not jbosscmp-jdbc-OrganizationBean.xml sorry > about that. > Secondly I place the jbosscmp-jdbc-LeafBean.xml in the directory path which > starts at where my mergeDir points (E.g ./src/merge) and has the package > name as directory structure (package is test.ejb.entity so the xml file is > ./src/merge/test/ejb/entity/ jbosscmp-jdbc-LeafBean.xml) > As soon as I generate the Xdoclet build when this merge file is in place > then only the content of that merge file is placed in between the <entity> > </entity> tags and the @jboss tags in the java source file are ignored.
Many of the merge points are intended mainly to be used with classes for which you don't have the source, so that you can still have settings for them included in the generated files even though you can't add @tags to them. Consequently, they will contain *all* the settings for a bean or class. This merge point is probably one of those. > The idea is to either merge the content for the file containing the > load-groups for that entity with the content generated from the tags in the > java source or have a jboss tag in the java source which allows me to create > the load-groups. The jbosscmp-jdbc_xml.xdt template includes some stuff that uses class-level and method-level @jboss.load-group tags, which I think does what you want. They don't appear to be documented, though. Try adding @jboss.load-group name="Filter" description="Queryfilter" at class level, and @jboss.load-group name="Filter" on the name, type and link field getter methods. And please raise an issue in JIRA (http://opensource.atlassian.com/projects/xdoclet/) for the lack of documentation. Andrew. > > Thanks again and sorry that these details where only given now. > > > > > >From: "percy christian" <[EMAIL PROTECTED]> > >Reply-To: xdoclet-user@lists.sourceforge.net > >To: xdoclet-user@lists.sourceforge.net > >Subject: [Xdoclet-user] how to automatically merge jbosscmp-jdbc-{0}.xml > >files > >Date: Fri, 15 Apr 2005 10:27:29 +0200 > > > >Hallo, > >I have eclipse project with jboss-ide plugin (1.4.1.e31-jre14) which > >contains the xdoclet 1.2.1 > >I want to use defined load strategies, so I was defined it as xdoclet tag > >in @jboss.querry xdoclet tag and was correctly generated into > >jbosscmp-jdbc.xml > >But how to define load-group? > >example - I have cmp 2.0 bean Leaf (LeafBean) and I was created definition > >file jbosscmp-jdbc-OrganizationBean.xml with content > ><load-groups> > ><load-group> > ><description>Queryfilter</description> > ><load-group-name>Filter</load-group-name> > ><field-name>name</field-name> > ><field-name>type</field-name> > ><field-name>link</field-name> > ></load-group> > ></load-groups> > > > >how to merge it automatically with generated jbosscmp-jdbc.xml? Both are > >placed in META-INF directory ... > > > > > >Thanks for any sugestion -- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user