Tamtadadadaaaaaaaaa!!!!!!
I can say only one word: GREAT. Inside collections it's VERY useful.
Why it can't be backported to 1.7?
If we will add this to 1.7 I would like to rename this version to 2.0.
In this version is so many new features. What's your opinion?

Pavel

On Tue, Jan 12, 2010 at 7:21 AM, Patrik Nordwall
<patrik.nordw...@gmail.com> wrote:
>
> It is not specific for PagedResult. Return and parameter types of service and
> repository operations are allowed to take a generics type.
> MyResult<@Person> myOp(MyParam<@Person> p);
>
> Also inside collections
> List<MyResult<@Person>> myOp(String s);
>
> /Patrik
>
> PaloT wrote:
>>
>> Hi Patrik,
>> you extension allow to define any generic return type for Repository
>> and Service or is only special case for generified PagedResult?
>>
>> Pavel
>>
>> On Sun, Jan 10, 2010 at 10:28 PM, Patrik Nordwall
>> <patrik.nordw...@gmail.com> wrote:
>>>
>>> I have fixed this in our oaw5_migration branch (version 1.8).
>>> http://fornax.itemis.de/jira/browse/CSC-464  CSC-464 .
>>>
>>> It would be unwise to do this change in 1.7.0, so I wont.
>>>
>>> Another workaround is that you define your own type in
>>> sculptor-generator.properties:
>>> javaType.PagedResultPerson=org.fornax.cartridges.sculptor.framework.domain.PagedResult<org.fornax.cartridges.sculptor.examples.library.person.domain.Person>
>>>
>>> Then you can define the service operation like this:
>>> PagedResultPerson findByAgeAndStatus(Integer age, String status,
>>> PagingParameter pagingParameter);
>>>
>>> /Patrik
>>>
>>>
>>>
>>> Patrik Nordwall wrote:
>>>>
>>>> This looks like a missing feature in the DSL. I will take a look at it
>>>> and
>>>> see what I can do. Maybe not possible to make it in 1.7.0 though.
>>>>
>>>> A workaround for you is that you move the entire method to the
>>>> repository
>>>> and use delegation in service, i.e.
>>>>
>>>>         Service PersonService {
>>>>           findByAgeAndStatus => PersonRepository.findByAgeAndStatus;
>>>>         }
>>>>
>>>>           Repository PersonRepository {
>>>>                 PagedResult findByAgeAndStatus(Integer age, String
>>>> status,
>>>> PagingParameter pagingParameter);
>>>>         }
>>>>
>>>> Note that the return type is specified as PagedResult, but the generated
>>>> java type will be PagedResult<Person>
>>>>
>>>> /Patrik
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/-Sculptor--Specifying-PagedResult-for-a-service-operation--tp27057133s17564p27102677.html
>>> Sent from the Fornax-Platform mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Verizon Developer Community
>>> Take advantage of Verizon's best-in-class app development support
>>> A streamlined, 14 day to market process makes app distribution fast and
>>> easy
>>> Join now and get one step closer to millions of Verizon customers
>>> http://p.sf.net/sfu/verizon-dev2dev
>>> _______________________________________________
>>> Fornax-developer mailing list
>>> Fornax-developer@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>>>
>>
>> ------------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Verizon Developer Community
>> Take advantage of Verizon's best-in-class app development support
>> A streamlined, 14 day to market process makes app distribution fast and
>> easy
>> Join now and get one step closer to millions of Verizon customers
>> http://p.sf.net/sfu/verizon-dev2dev
>> _______________________________________________
>> Fornax-developer mailing list
>> Fornax-developer@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/-Sculptor--Specifying-PagedResult-for-a-service-operation--tp27057133s17564p27123160.html
> Sent from the Fornax-Platform mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> Fornax-developer mailing list
> Fornax-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to