On Mon, 2005-04-18 at 09:20, Gerrit Grobbelaar wrote:
> Thank you, I managed to achieve what I wanted to by editing the
> "jbosscmp-jdbc_xml.xdt" file.  I just added a
> <XDtMerge:merge file="jbosscmp-jdbc-entity-command-{0}.xml">
> element so that I can specify individually whether I want to add the
> <entity-command name="YOUR_DB-fetch-key" /> element in the <entity> elements
> or not.

Is there some particular reason you can't just add @jboss.entity-command
and @jboss.entity-command-attribute tags on the classes that need them?


Andrew.

> 
> Gerrit.
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Andrew
> > Stevens
> > Sent: Sunday, April 17, 2005 01:31
> > To: xdoclet-user@lists.sourceforge.net
> > Subject: Re: [Xdoclet-user] Merging jbosscmp-jdbc-{0}.xml files
> >
> >
> > On Sat, 2005-04-16 at 14:11, Gerrit Grobbelaar wrote:
> > > Hi there,
> > >
> > > Is there anyway that when I have individual merge files for some of my
> > > beans, that the contents of the merging file does not completely
> > > override the default contents of the <entity> tag of those beans?
> > >
> > > Currently I do get the files to merge, but the only contents in the
> > > <entity> element is what is in the merge file, and all the default
> > > <cmp-field> are not there anymore.
> >
> > As I said in my reply to percy christian just last night (subject "how
> > to automatically merge jbosscmp-jdbc-{0}.xml files"),
> > >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.
> > Take a look through the template
> > (http://cvs.sourceforge.net/viewcvs.py/xdoclet/xdoclet/modules/jbo
> > ss/src/xdoclet/modules/jboss/ejb/resources/jbosscmp-jdbc_xml.xdt?v
> > iew=markup) for the <XDTMerge:merge> tags and you should see
> > which elements will be replaced by the merge file and which can
> > still be specified by other means.
> >
> >
> > Andrew.
> > --
-- 



-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to