> 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?


> Casting return value isn't big issue, I hope. If yes, than write your
> own facade which can use generics and is using generated service at
> background. This your service implementation should be put to
> 'more.xml' with nice name like 'TypeService' and rename your generated
> service in model file to 'MyTypeHiddenService' and inject it in
> more.xml into your own service.

The casting of the return values are not the big problem but a nice-to-have.

So this seems to be the solution, I assume. 

 
> If you really want to push Sculptor to generate generics, it's huge
> amount of work because you have to change everything from syntax
> definition to generation templates. However you are always welcome on
> board.

If I had the time for this, but unfortunately my schedule is full.
We are using Sculptor to reduce the work. You suggest the opposite. ;-)


Regards,
Sascha Broich

-- 
TSA - Teleport Sachsen-Anhalt Service GmbH
Delitzscher Straße 70, 06112 Halle
Phone: +49 39203 8 2524 
Email: sascha.bro...@tsa.de

Firmensitz: Steinfeldstraße 5, D-39179 Barleben
Geschäftsführer: Marco Langhof
Amtsgericht: Stendal HRB 6388
http://www.tsa.de

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

Reply via email to