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