On Mon, Jul 27, 2009 at 3:32 PM, Sascha Broich -
TSA<sascha.bro...@tsa.de> wrote:
>> Von: Pavel Tavoda [mailto:pavel.tav...@gmail.com]
>>
>> OK, what is problem with this? Everything should work fine except
>> return parameter of service method which always return 'Type' and you
>> have to cast it to right type. Just do in your service declarations:
>> @Type remove(@Type t);
>> Collection<@Type> findAll();
>
> The question for me is now, do I need a repository per subclass to achieve a
> findAll for a subclass? Or do I have to go manually through the findAll 
> result?

One repository per subclass is one approach (easy for you).
Second is to define your own Custom access object where you can use
your own access parameters like Class. Look in Advanced tutorial
section 'Custom access object'
(https://fornax.itemis.de/confluence/display/fornax/3.+Advanced+Tutorial+%28CSC%29#3.AdvancedTutorial%28CSC%29-CustomAccessObjects).

Pavel

------------------------------------------------------------------------------
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to