Re: Inheritance and prefetching

2013-12-09 Thread Alexis Tual
Yes it's referencing A in my example. Do I have to reference all subentities of A ? I'll try tomorrow at the office. Thanks Alex 2013/12/9 Ken Anderson > Is the back pointing relationship referencing the superclass? You need to > create multiple relationships, specifically naming all the sub

Re: Inheritance and prefetching

2013-12-09 Thread Ken Anderson
Is the back pointing relationship referencing the superclass? You need to create multiple relationships, specifically naming all the subclasses. On Dec 9, 2013, at 5:41 PM, Alexis Tual wrote: > Hi Ken, > > thanks for your suggestion, but I already have the backpointing > relationship... > I'

Re: Inheritance and prefetching

2013-12-09 Thread Alexis Tual
Hi Ken, thanks for your suggestion, but I already have the backpointing relationship... I'll try to do a simple projet to isolate the issue. Alex 2013/12/6 Ken Anderson > In ancient times… (and I mean like, 15 years ago) > > A back pointing relationship from the subclasses of B to the abstra

ERRrest session defaultEditingContext

2013-12-09 Thread Michael Kondratov
Is there an easy way to get ERRest to use session’s default editing context if session is available? It seems I am missing out on WebObject’s snapshot caching when not using long lived editing contexts. Michael Kondratov Aspire Auctions smime.p7s Description: S/MIME cryptographic signature ___

Re: java.lang.IllegalStateException: Trying to check out a session twice in one RR loop

2013-12-09 Thread Raymond NANEON
Hi Chuck,anySession() is a method which come from ERXSession classpublic static WOSession anySession() {      return (WOSession) ERXThreadStorage.valueForKey("session");  }ThanksEnvoyé depuis iCloudLe 9 déc. 2013 à 16:31, Chuck Hill a écrit :\On 2013-12-09 2:37 AM, "Raymond NANEON" wrote:Hi,  I al

Re: java.lang.IllegalStateException: Trying to check out a session twice in one RR loop

2013-12-09 Thread Chuck Hill
\On 2013-12-09 2:37 AM, "Raymond NANEON" wrote: Hi, I always have the Exception, so I rewrote mySession() method. After catching Exception, I don't create a new session but use the same like this : public Session mySession() { if (sess == null) { try { se

Re: java.lang.IllegalStateException: Trying to check out a session twice in one RR loop

2013-12-09 Thread Chuck Hill
On 2013-12-09 1:20 AM, "Raymond NANEON" wrote: Hi Samuel, I surrounded the mySession() by "try - catch" because the Exception appear when sess = (Session) session(), so I catch the Exception and create a new session. The problem is not in creating new session but in checking old session. I ini

Re: java.lang.IllegalStateException: Trying to check out a session twice in one RR loop

2013-12-09 Thread Raymond NANEON
Hi, I always have the Exception, so I rewrote mySession() method. After catching Exception, I don't create a new session but use the same like this :    public Session mySession() {    if (sess == null) {    try {    sess = (Session) session();    } catch (Exception

Re: java.lang.IllegalStateException: Trying to check out a session twice in one RR loop

2013-12-09 Thread Raymond NANEON
Hi Samuel,I surrounded the mySession() by "try - catch" because the Exception appear when sess = (Session) session(), so I catch the Exception and create a new session.The problem is not in creating new session but in checking old session.I initialized mySession with session which come from my Dire