Hi Samuel,There are no SQL _expression_, it fails in fetchSpec when it want to read relationship. So I deleted all relationship between differents models. I have activated foreign keys in class description, set foreign keys and the commit in database works fine. foreign keys exists in database so t
Models are on the same database. I have set relationship two entities in the
same model and there is no problem but with another model it fails.
I use dbConnectServerGLOBAL, dbConnectUserGLOBAL, dbConnectPasswordGLOBAL for
models and there is no connection problem.
Thanks Chuck
Le 18 juin 2013
Yep Samuel in the stack it tries to fetch personnels in EOIndividuUlr but the
problem "personnel".setIndividuRelationship(individu) is a new entity so,
there is no primary key ?
I am not at my office, may be tomorrow for SQL expression.
Thanks
Le 18 juin 2013 à 18:30, Samuel Pelletier a écri
Strange, it seems EOF failed to create a global id for a result. I think the
stack indicate EOF is fetching toMany named "personnels" in the "EOIndividuUlr"
entity.
I would check the SQL issued by EOF on the console, you may find the row that
cause this, check for primary and foreign key proble
Are they in the same database? If so, the connection information for the two
models must be absolutely identical.
Chuck
On 2013-06-18, at 8:01 AM, Raymond NANEON wrote:
> Oupppsss, I forgot something, EOIndividuUlr and EOPersonnel are in differents
> models.
> Envoyé depuis iCloud
>
> Le 18
I would bet your objects are not from the same EOEditingContext. You can verify
in the debugger of add a call to localInstanceIn(ec) before using it for your
relationship.
Samuel
Le 2013-06-18 à 05:43, Musall Maik a écrit :
> Hi Raymond,
>
> I have come across those as well some time ago, an
Oupppsss, I forgot something, EOIndividuUlr and EOPersonnel are in differents models.Envoyé depuis iCloudLe 18 jun 2013 à 07:59, Raymond NANEON a écrit :Here is the complete stacktrace : juin 18 16:56:00 PreProjets[8484] INFO er.transaction.adaptor.Exceptions - Database Exception occured: java.l
Here is the complete stacktrace : juin 18 16:56:00 PreProjets[8484] INFO er.transaction.adaptor.Exceptions - Database Exception occured: java.lang.NullPointerExceptionjava.lang.NullPointerException at com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(
Hi Maik,I have read and followed all EOF Commandements but I can't fix the issue.an idea?thanksEnvoyé depuis iCloudLe 18 jun 2013 à 02:43, Musall Maik a écrit :Hi Raymond,I have come across those as well some time ago, and it turned out that I didn't strictly obey all the EOF commandments back the
Hi Raymond,
I have come across those as well some time ago, and it turned out that I didn't
strictly obey all the EOF commandments back then.
http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-The+EOF+Commandments
If you don't follow those, EOF will fight back with all sorts of str
Hi List,I have a big problem to save my data. When I set the relastionship entity1.setEntity2Relationship(entity2), I get a java NullPointerException at the method who set the relation :addObjectToBothSidesOfRelationshipWithKey(entity2, _Enity1.ENTITY2_KEY); <-When I try another way entity1.set
11 matches
Mail list logo