• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship


  • Subject: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship
  • From: email@hidden
  • Date: Tue, 10 May 2011 13:49:02 +0200 (CEST)

Hi all,

I have 2 models using different schema of a database. but these schemas have table which have relationship. So in my model "A", I use a fetch spec. on a table which have the maximum relation with tables in model "A" and "B".
So when I excute my fech spec, WO don't see the schema of model A and show exception ORA-00942 : table or view does not exist. This a the querry generate by WO on fetching :

"SELECT t0.ANC_UV_OUVERTE_ID, t0.CATEG_ID, t0.CRE_DATE, t0.DIPL_SPEC_$C, t0.DIPLOME_$C, t0.MAJ_AUTEUR, t0.MAJ_DATE, t0.NLE_UV_OUVERTE_ID, t0.UV_CREDITS_ECTS, t0.UV_OUV_ID FROM UV_OUVERTES t0, INDIVIDU T4, UV_OUV T1, ETU_INSCR_ADM T3, DIPLOME T2 WHERE ((T1.AN_UNIV like ? ESCAPE '\' AND T1.PRD_UNIV like ? ESCAPE '\') OR t0.DIPLOME_$C like ? ESCAPE '\' OR T3.NIVEAU_ADM = ? OR T1.UV_OUV_ID = ?) AND T3.CONSEILLER_ID = T4.INDIV_ID AND t0.UV_OUV_ID = T1.UV_OUV_ID AND T2.DIPLOME_$C = T3.DIPLOME_$C AND t0.DIPLOME_$C = T2.DIPLOME_$C ORDER BY T4.NOM ASC, T4.PRENOM ASC" withBindings: 1:"2005"(anUniv), 2:"1A"(prdUniv), 3:"ING2"(diplomec), 4:"1"(niveauAdm), 5:131(uvOuvId)>"

tables INDIVIDU, ETU_INSCR_ADM and DIPLOME are table of schema B but WO can't translate it like that i.e : A.INDIVIDU or A.ETU_INSCR_ADM.

Thanks for your help

PS : I have a storedProcedure which return data and do the same request but I don't know how to insert it in my code and binding it with WODisplayGroup for batch view (previous, next) with 10 students per batch.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship
      • From: Alexis Tual <email@hidden>
    • Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship
      • From: email@hidden
    • Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Installing the tools: The One True Way?
  • Next by Date: Re: Installing the tools: The One True Way?
  • Previous by thread: Re: Project Wonder Licensing
  • Next by thread: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship
  • Index(es):
    • Date
    • Thread