Re: [Fornax-developer] [sculptor] Access one repository from another

2008-12-17 Thread Patrik Nordwall
Documentation corrected. Thanks, Patrik Steffen Stundzig wrote: > > hi, > > i've solved it. The correct syntax to inject repos is > > Repository MediaRepository { >> @MediaCharacterRepository > } > > Take care for the @ in front of the repository name. Otherwise the name > after the >

Re: [Fornax-developer] [sculptor] Access one repository from another

2008-12-17 Thread Steffen Stundzig
hi, i've solved it. The correct syntax to inject repos is Repository MediaRepository { > @MediaCharacterRepository } Take care for the @ in front of the repository name. Otherwise the name after the > is only parsed as string name. Patrick, could you fix the docu please? regards Patrik N

[Fornax-developer] [sculptor] Access one repository from another

2008-12-17 Thread R. Heydenreich
Hi all, is there a possibility for accessing a repository from within another? e.g., public class RepoNo1 { public void oneMethod() { RepoNo2 r2 = getRepoNo2(); r2.doSomeThing(); } If I take the way via JNDI lookup I always get a new session, what I don't want. Any ideas? TIA, Ralf. --

Re: [Fornax-developer] [sculptor] Access one repository from another

2008-12-17 Thread Steffen Stundzig
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

Re: [Fornax-developer] [sculptor] Access one repository from another

2008-12-17 Thread Patrik Nordwall
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%