Hi patrick,

i working also on these solution. If i inject one repository into 
another, the generator generates correct spring xml files. But I miss 
the setXYZRepository in my MediaRepository.

I'm using the current 1.5.0-SNAPSHOT.

I've debug it a little bit. In the spring-template the generator 
iterators on the 'otherDependencies' collection. The generator in the 
repository iterates only on the repositoryDependencies.

regards

Patrik Nordwall schrieb:
> It is possible to inject another repository like this:
> 
> Repository MediaRepository {
>   > MediaCharacterRepository
>   List<@Media> findMediaByCharacter(Long libraryId, String characterName);
>   ...
> }
> 
> See:
> http://fornax-platform.org/cp/display/fornax/3.+Advanced+Tutorial+%28CSC%29#3.AdvancedTutorial%28CSC%29-HowtoGenerateRepositories
> 
> /Patrik
> 
> R. Heydenreich wrote:
>> Hi all,
>> is there a possibility for accessing a repository from within another?
>> e.g.,
>>
>> <code>
>> public class RepoNo1 {
>> public void oneMethod() {
>>    RepoNo2 r2 = getRepoNo2();
>>    r2.doSomeThing();
>> }
>> </code>
>>
>> If I take the way via JNDI lookup I always get a new session, what I don't
>> want. Any ideas?
>>
>> TIA,
>> Ralf.
>>
> 

-- 
Steffen Stundzig

Telefon: +49 (0) 341 / 231-0183-401
Telefax: +49 (0) 341 / 231-0183-411
Mobil:   +49 (0) 151 / 173-9673-1 (!neu)

http://itemis.de
steffen.stund...@itemis.de
https://www.xing.com/profile/Steffen_Stundzig

itemis AG
Ludwig-Erhard-Straße 51
04103 Leipzig

Rechtlicher Hinweis:

Amtsgericht Dortmund, HRB 20621

Vorstand: Wolfgang Neuhaus, Jens Wagener, Dr. Georg Pietrek

Aufsichtsrat: Dr. Burkhard Igel(Vors.), Stephan Grollmann, Michael Neuhaus


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to