This content has been marked as final. Show 3 replies
Two things are needed for conforming to work on new object. The first is to set unitOfWork.setShouldNewObjectsBeCached(true), the second is to ensure new objects have a primary key before being registered. If you are using sequencing, you can use the unitOfWork.assignSequenceNumber(newObject) api.
Thanks for the reply.
I add a sequence and assign the key bfore register the object.
Alle registrierten Clones:
Schl³ssel: [01-AKCA-21355792] Identity Hash-Code: 35689958 Objekt: MyObject
But the result oft the query ist still null. I only get the object when it's already persisted.
ReadObjectQuery roq = new ReadObjectQuery(AkcAtRatingScoreConnectScoreFull.class);
Edited by: user11344339 on 20.11.2012 01:01