You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Scott Kurz <sc...@gmail.com> on 2006/11/09 16:42:59 UTC

@DataType annotations in BigBank

Why does the annotation:
@DataType(name = "commonj.sdo.DataObject")

appear on both the LoginService and ProfileService interfaces in the BIgBank
sample, while it is commented out in the StockQuoteService?  These services
do not involve actual SDO DataTypes, right?

It seems that it should be only needed on the AccountReport type which would
be generated from a wsdl2java.

Was it an oversight to leave this in?  A best practice which has no real
effect?  Or is this accomplishing something I'm missing?

Thanks

Re: @DataType annotations in BigBank

Posted by Luciano Resende <lu...@gmail.com>.
Can this be a side-effect of :
http://issues.apache.org/jira/browse/TUSCANY-754

- Luciano

On 11/9/06, Raymond Feng <en...@gmail.com> wrote:
>
> Hi, Scott.
>
> Actually, LoginService amd ProfileService is not required to have the
> @DataType(name = "commonj.sdo.DataObject") because both interfaces only
> deal
> with simple java types.
>
> You should only apply @DataType to interfaces used by SCDL "interface.xxx"
> elements. Interfaces generated by SDO to reprepresent the data is not
> involved.
>
> Thanks,
> Raymond
>
> ----- Original Message -----
> From: "Scott Kurz" <sc...@gmail.com>
> To: <tu...@ws.apache.org>
> Sent: Thursday, November 09, 2006 7:42 AM
> Subject: @DataType annotations in BigBank
>
>
> > Why does the annotation:
> > @DataType(name = "commonj.sdo.DataObject")
> >
> > appear on both the LoginService and ProfileService interfaces in the
> > BIgBank
> > sample, while it is commented out in the StockQuoteService?  These
> > services
> > do not involve actual SDO DataTypes, right?
> >
> > It seems that it should be only needed on the AccountReport type which
> > would
> > be generated from a wsdl2java.
> >
> > Was it an oversight to leave this in?  A best practice which has no real
> > effect?  Or is this accomplishing something I'm missing?
> >
> > Thanks
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>

Re: @DataType annotations in BigBank

Posted by Raymond Feng <en...@gmail.com>.
Hi, Scott.

Actually, LoginService amd ProfileService is not required to have the 
@DataType(name = "commonj.sdo.DataObject") because both interfaces only deal 
with simple java types.

You should only apply @DataType to interfaces used by SCDL "interface.xxx" 
elements. Interfaces generated by SDO to reprepresent the data is not 
involved.

Thanks,
Raymond

----- Original Message ----- 
From: "Scott Kurz" <sc...@gmail.com>
To: <tu...@ws.apache.org>
Sent: Thursday, November 09, 2006 7:42 AM
Subject: @DataType annotations in BigBank


> Why does the annotation:
> @DataType(name = "commonj.sdo.DataObject")
>
> appear on both the LoginService and ProfileService interfaces in the 
> BIgBank
> sample, while it is commented out in the StockQuoteService?  These 
> services
> do not involve actual SDO DataTypes, right?
>
> It seems that it should be only needed on the AccountReport type which 
> would
> be generated from a wsdl2java.
>
> Was it an oversight to leave this in?  A best practice which has no real
> effect?  Or is this accomplishing something I'm missing?
>
> Thanks
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: @DataType annotations in BigBank

Posted by Rick <cr...@gmail.com>.
Thanks Scott.  I went ahead and removed them.  There was something that had me 
put it in at one time, but apparently it's been fixed.

Scott Kurz wrote:
> Why does the annotation:
> @DataType(name = "commonj.sdo.DataObject")
> 
> appear on both the LoginService and ProfileService interfaces in the 
> BIgBank
> sample, while it is commented out in the StockQuoteService?  These services
> do not involve actual SDO DataTypes, right?
> 
> It seems that it should be only needed on the AccountReport type which 
> would
> be generated from a wsdl2java.
> 
> Was it an oversight to leave this in?  A best practice which has no real
> effect?  Or is this accomplishing something I'm missing?
> 
> Thanks
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org