On Mon, 2004-07-19 at 16:28, Tito Eritja wrote:
> I'm sorry... I haven't explained myself well... ;-(
> 
> the problem is that I have several ejb with packages like:
> 
> package net.inventa.online.model.xxx.ejb; 
> 
> and I would like the packages of generated value objects as:
> 
> net.inventa.online.beans.xxx.ObjectXValue; 
> 
> As I'm going to use this value objects in model and view layer, I don't
> want it in model package. And with packageSubstituition (as far as I
> know) I just can change the end of packages... Isn't 

If there's not too many packages involved, you can use multiple
packageSubstitution elements, so

<packageSubstitution packages="model.x.ejb" substituteWith="beans.x"/>
<packageSubstitution packages="model.y.ejb" substituteWith="beans.y"/>
...

Alternatively, I seem to recall there was a patch in JIRA to give
packageSubstitution a wildcard substitution facility; I can't remember
if it's been applied to the main code line yet, though.  Have a search
and see if the issue's still open.
http://opensource.atlassian.com/projects/xdoclet/


Andrew.

> 
> tito
> 
> 
> 
> El lun, 19 de 07 de 2004 a las 14:17, Nirmish R. Dholakia escribi�:
> > for example i hava package like "kategorymanagment.ejb.entity.bean" 
> > and i want my package for value object is only kategorymangment then i simply
> > put the line in properties file like...
> > 
> > 
> > valueobject.package.substitution=kategorymanagment.ejb.entity.bean
> > valueobject.package.substitution.with=kategorymanagment
> > 
> > same for you 
> > u can give the entry in properties file  like...
> > 
> > 
> > valueobject.package.substitution=model.ejb
> > valueobject.package.substitution.with=bean
> > 
> > 
> > Hope this will work..
> > 
> > Nirmish..
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Tito
> > Eritja
> > Sent: Monday, July 19, 2004 5:36 PM
> > To: xdoclet
> > Subject: [Xdoclet-user] packageSubstitution with value objects
> > 
> > 
> > Hi everybody. 
> > 
> > I have a ejb named User in package net.inventa.example.model.ejb. Within
> > this ejb, I create a value object name User.
> > 
> > The thing is that I would like xdoclet to create this value object in
> > package net.inventa.example.beans, but with packageSubstitution I'm just
> > able to change the last "ejb" for another "directory". Does anybody know
> > how to do it?
> > 
> > thanks for you time
> > 
> > 
> > tito
> > 


-------------------------------------------------------
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_idG21&alloc_id040&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to