I think this is a case you should implement manually or adjust the code
generation templates to fit your need. Documentation:
http://fornax.itemis.de/confluence/display/fornax/7.+Developer%27s+Guide+%28CSC%29#7.Developer%27sGuide%28CSC%29-ChangeGenerationTemplates

http://fornax.itemis.de/confluence/display/fornax/7.+Developer%27s+Guide+%28CSC%29#7.Developer%27sGuide%28CSC%29-Howtoexcludegeneration


I can probably help you more with the customization if you like, but then I
need more information and an example to be able to understand exactly what
you would like to do.

/Patrik


Sascha Broich wrote:
> 
> Hello,
> 
> I'm wondering if it is possible to use generics in the design file.
> 
> For several entities that inherit from an abstract entity I want to create
> a single service that can handle some basic requests like save, findAll or
> findByName for each of the entities.
> 
> So I'd like to have 
> 
> <T extends @Base> T save(T t);
> <T extends @Base> Collection<T> findAll(Class<T> clazz);
> <T extends @Base> T findByName(Class<T> clazz, String name);
> 
> in my service interface.
> 
> I could write it by hand into the generated Java file but this would be a
> Sisyphean task. 
> The implementation I can handle manually but the interface is my concern.
> 
> 
> Regards,
> Sascha Broich
> -- 
> TSA - Teleport Sachsen-Anhalt Service GmbH
> Delitzscher Straße 70, 06112 Halle
> Tel: +49 39203 8 2524 - Fax: 
> Mobil:   - E-Mail: [email protected]
> 
> Firmensitz: Steinfeldstraße 5, D-39179 Barleben
> Geschäftsführer: Marco Langhof
> Amtsgericht: Stendal HRB 6388
> http://www.tsa.de
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Fornax-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fornax-developer
> 
> 

-- 
View this message in context: 
http://www.nabble.com/model.btdesign-and-Generics-tp24643102s17564p24645732.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


------------------------------------------------------------------------------
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to