webserverresources path for older versions

2024-05-08 Thread OC via Webobjects-dev
“WOApplication.application().path()”, but that could get sorta ugly soon... and besides, I'd much rather exploit the framework power than to skip it and DIY :) Thanks! OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev

p_objectCountAttribute exception?

2019-03-30 Thread OC
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141) at model.DBDataBlock.numberOfMasterRowsWithoutOwner(DBDataBlock.groovy:76) ... ... ... === Any idea what might be the culprit and how to fix the problem? Thanks a lot, OC _

Re: attribute of EO not synced

2018-03-21 Thread OC
the snapshot. Was I wrong?) Thanks a lot, OC > >> On Mar 21, 2018, at 7:41 PM, OC <o...@ocs.cz> wrote: >> >> Hi there, >> >> long time no see, my problems were plain and easy. Now though I am back with >> another thing I can't understand. >>

attribute of EO not synced

2018-03-21 Thread OC
at the same time changes (and saves) one of its EOs, that the change would NOT get properly merged to the first EC? If not, well, does anybody have any idea what might be the culprit? Thanks a lot for any advice, OC ___ Do not post admin

SSL and port fun

2017-04-07 Thread OC
-protected? Or should I tell them they need to fix their Apache settings, or whatever? Thanks a lot, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe

log4j bug causes deadlock?!? (was: which sort of application bugs hang wotaskd?)

2016-10-25 Thread OC
and (b) above). So, well, is there indeed a grave bug inside of the ubiquitous log4j, or am I overlooking something of importance? And if there is a bug, is there anything better one can do to work around it than using toStrings for all non-trivial logs, like “log.info("non-trivial-conte

which sort of application bugs hang wotaskd?

2016-10-24 Thread OC
force it somehow to log the stacktracks of all its threads. Is there some trick for that? And of course, for any other advice how to hunt for this bloody kind of bug I'll be extremely grateful. Thanks a lot, OC ___ Do not post adm

quick followup: ERXExistsQualifier blocks *all coordinators* even before a SELECT?!?

2016-10-13 Thread OC
To be sure where the delay happens, I have tried to re-write the code [1] to === 1 === def me=new EOKeyValueQualifier('user',EOQualifier.QualifierOperatorEqual,sess.currentUser) def hasme=new ERXExistsQualifier(me,'userLinks') def fs=new EOFetchSpecification('DBGenGeneratedItem',hasme,null)

Re: WORedirect with a known MIME type?

2016-10-11 Thread OC
n .htaccess, am not sure). Nevertheless, meantime I succeeded to explain to my client that it would be much better to force some hard-coded file extensions based on the MIME types, which solves the problem very nicely :) Thanks, OC >> Le 9 oct. 2016 à 15:24, o...@ocs.cz a écrit : >> >

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread OC
Chuck, all my PKs/FKs are the same: - "INTEGER" for SQL type - "NSNumber" for class name - "i" for value type Thanks a big lot! OC On 21. 9. 2016, at 3:40, Chuck Hill <ch...@gevityinc.com> wrote: > Off the top of my head, check they types of th

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread OC
and couriouser, Alice would say :-O Thanks and all the best, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread OC
r entity does not have "own relationship" checked but have the > "Propagate primary key" checked. Anyway, to be sure, I have tried both combinations (“owsDestination” YES/NO and “propagatesPrimaryKey” YES/NO) in the relationship dictionary, to no avail — always the same result, th

derived attribute to sum a relationship?

2016-08-22 Thread OC
numerous problems, from ambiguity of C_ID up to the fact that EOF caches the fetched value and does not recache when the relationship objects change, and thus I am getting obsolete values. Is there a way to do that properly? Thanks, OC ___ Do not post

Re: qualified to-many relationships?

2016-07-11 Thread OC
P.S. Well I _am_ sort of at the slow side today. I guess this might bring nasty problems with EOs *not* synchronized, right? The net effect would be essentially the same as if each session run in its own instance, or am I wrong? Thanks again, OC On 11. 7. 2016, at 13:12, OC <o...@ocs

Re: Horizontal inheritance to splitting big database tables to speed up?

2016-07-11 Thread OC
e. Might I perhaps ask which hooks did you employ, just in case they might prove valuable for my problem, too? Thanks a lot, OC > This was not for performance in my case, it was because a horrible student > information system at a school system I was at duplicated every table for > ever

Re: qualified to-many relationships?

2016-07-11 Thread OC
I see. Can you please nudge how would one do the „EOF stack per session“ (or per a selected number of sessions, but not all of them) magic? I guess I should know, but my old dumb brains does not seem to co-operate much at the moment :) Thanks a lot, OC On 11. 7. 2016, at 6:47, Chuck Hill <

Re: Horizontal inheritance to splitting big database tables to speed up?

2016-07-11 Thread OC
is not with me. No other (reasonably simple) way you would know of to hook into EOF to obtain the desired effect, i.e., to be able to determine the target entity _before_ a fetch? Thanks again, OC > From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com> on behalf > of OC &

Re: fspec qualifier documentation?

2016-07-11 Thread OC
): no qualifiers in there and no Java bridge either. Thanks, OC On 11. 7. 2016, at 6:53, Chuck Hill <ch...@gevityinc.com> wrote: > Pretty sure what you looking for is EOKeyValueUnarchiver and > EOKeyValueArchiver > > From: <webobjects-dev-bounces+chill=gevityinc@lists

ERXDisplayGroup vs insertNewObjectAtIndex

2016-07-11 Thread OC
th the documentation, I sort of fear it might indicate some deep-hidden problem? Thanks and all the best, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubs

fspec qualifier documentation?

2016-07-10 Thread OC
= 101; }; }; === -- this one actually happens to work -- but I would like to see a complete documentation, if there is one? Thanks a lot, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (

Re: Horizontal inheritance to splitting big database tables to speed up?

2016-07-10 Thread OC
, before EOF tries to fetch? Thanks and all the best, OC On 10. 7. 2016, at 21:25, OC <o...@ocs.cz> wrote: > Thinking about > > On 9. 7. 2016, at 12:13, OC <o...@ocs.cz> wrote: > >> For one, it would mean each DBTable eo would have its "records" rela

Horizontal inheritance to splitting big database tables to speed up?

2016-07-10 Thread OC
Thinking about On 9. 7. 2016, at 12:13, OC <o...@ocs.cz> wrote: > For one, it would mean each DBTable eo would have its "records" relationship > leading into another target DBRecordXX entity; I am not sure whether this can > be modelled at all? actually it woul

Re: Splitting big database tables to speed up?

2016-07-10 Thread OC
s well. Huge performance gains for us. That would help tremendously. Is there anything similar in FrontBase? Thanks, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.ap

Re: qualified to-many relationships?

2016-07-10 Thread OC
Chuck, On 9. 7. 2016, at 11:54, OC <o...@ocs.cz> wrote: > Meantime I have realised one thing: the "qualifiedRecords" are current-user > (i.e., session) dependent in such a way that for a given session which needs > to qualify them, there will *never* be need t

Re: qualified to-many relationships?

2016-07-09 Thread OC
d it seems it does not, just like the DatabaseContextDelegate. Thanks again, OC >> Am 09.07.2016 um 11:54 schrieb OC <o...@ocs.cz>: >> >> Chuck, >> >> On 9. 7. 2016, at 6:37, Chuck Hill <ch...@gevityinc.com> wrote: >> >>> The answer dep

Re: Splitting big database tables to speed up?

2016-07-09 Thread OC
hand, the T_RECORDS table is very huge), by tricking EOF to replace it by "SELECT ... FROM T_RECORDS_XXX". Keeping all the other things unchanged, especially still having one DBRecord entity modelled the same way -- just having much faster fetches. And joins in other scenarios, et

Re: qualified to-many relationships?

2016-07-09 Thread OC
t to pursue this. and I would be then pretty grateful for that. Thanks a lot, OC > From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com> on behalf > of OC <o...@ocs.cz> > Date: Friday, July 8, 2016 at 1:11 AM > To: WebObjects-Dev Mailing List <webobje

Splitting big database tables to speed up?

2016-07-08 Thread OC
Actually, I wonder... On 8. 7. 2016, at 10:11, OC <o...@ocs.cz> wrote: > Alas, my DBTables contain _lots_ of DBRecords, and thus the above > implementation would get terribly slow ... my setup is pretty standard, i.e. - DBTables are represented by rows in one DB table, say, T

qualified to-many relationships?

2016-07-08 Thread OC
edRecords") etc. seamlessly, and they work as expected. Is there a way to do this at all? Perhaps I am just blind, but I cannot find any decent solution :/ Thanks and all the best, OC ___ Do not post admin requests to the list. They will be ignored. Webo

sort of solved: slow/blocked fetch, FrontBase?

2016-05-22 Thread OC
with that, but well -- far as it works, I do not complain :) All the best, OC On 22. 5. 2016, at 15:41, OC <o...@ocs.cz> wrote: > Hello there, > > my application runs well up to one fetch; I have added these logs > > === > println "AA fe

slow/blocked fetch, FrontBase?

2016-05-22 Thread OC
c.FBJConnection.createConnection(Unknown Source) at com.frontbase.jdbc.FBJConnection.reconnect(Unknown Source) at com.frontbase.jdbc.FBJConnection.fbX(Unknown Source) at com.frontbase.jdbc.FBJConnection.execute(Unknown Source) ... === I would be very grateful fo

qualifier with (NULL or joined value)?

2016-04-26 Thread OC
ray() def nulls=... fetch with q-format ... "owner = NULL" if (nulls) all.addObjectsFromArray(nulls) def types=... fetch with q-format ... "owner.userType = %@",pc.userType if (types) all.addObjectsFromArray(types) return all === does? Thanks, OC

Re: just checking...

2016-04-19 Thread OC
> updated it at this same time) and thus there is not exception. > >> (vi) thread B ends and unlocks; changes from (iii) get processed now, but >> too late to prevent the exception in (v) Just so as I understand this completely -- these changes, performed at unlock, consist o

Re: just checking...

2016-04-19 Thread OC
an optimistic exception (vi) thread B ends and unlocks; changes from (iii) get processed now, but too late to prevent the exception in (v) Well self-evidently I am wrong, but why? At which point does ECb snapshot in this scenario get the ECa changes of (iii)? Thanks and all the best, OC

Re: just checking...

2016-04-19 Thread OC
ate the database (like you in > a SQL tool). Or -- at least I thought so -- assuming no other thread does that before the snapshots can get synchronised. Which -- again, I thought so, probably wrongly -- can easily happen with WOAllowsConcurrentRequestHandling = YES, can't happen at all (w

ERMailDataAttachment and MIME

2016-04-19 Thread OC
let him to. Thanks! OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev

Re: just checking...

2016-04-19 Thread OC
it would work precisely the same -- be it, depending on the policy, wrong or right -- with or without optimistic locking of anything but PKs”. Thanks and all the best, OC >> Le 19 avr. 2016 à 09:09, OC <o...@ocs.cz> a écrit : >> >> ... whether I am overlooking something or not

just checking...

2016-04-19 Thread OC
I right? Or do I overlook some disaster scenario? Thanks, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https

Re: ERXEOControlUtilities.objectCountForToManyRelationship for new objects fails?

2016-04-13 Thread OC
nd never caused anything worse than the need to check occasionally for NPE!) Chuck, you are incredible! Thanks a big lot just again, OC > Sent from my mobile device. > >> On Apr 13, 2016, at 11:27 AM, OC <o...@ocs.cz> wrote: >> >> Thanks both of you. Very weird:

Re: ERXEOControlUtilities.objectCountForToManyRelationship for new objects fails?

2016-04-13 Thread OC
rd - class com.webobjects.eocontrol.EOCustomObject - class java.lang.Object created: null inserted: null saved: null refetched: [] === No, I do not override storedValueForKey (I do create the accessors, so wrong “neweo.actions()” might be my fault; but storedValueForKey?!?) Hmmm interesting

ERXEOControlUtilities.objectCountForToManyRelationship for new objects fails?

2016-04-13 Thread OC
ion? And what am I overlooking? To me, the check for null in objectCountForToManyRelationship looks like a bug. Thanks a lot, OC === 18:53:43.124 WARN : Exception occurred while handling request: java.lang.IllegalArgumentException: The attribute named 'actions' in the entity named 'DBDataBl

Re: Extending the “No Instance Available” timeout

2016-04-06 Thread OC
what takes that long (and how long precisely). All the best, OC On 6. 4. 2016, at 17:55, Lon Varscsak <lon.varsc...@gmail.com> wrote: > Just to help Ben while he’s sleeping… This is while he’s running the > application from within Eclipse (still through Apache) while he’s > te

Re: Extending the “No Instance Available” timeout

2016-04-06 Thread OC
ything of interest in the adaptor log? All the best, OC > On Wed, Apr 6, 2016 at 2:59 PM, Chuck Hill <ch...@gevityinc.com> wrote: > Receive Timeout is set in JavaMonitor. > > From: Benjamin Chew <bc...@smarthealth.com> > Date: Tuesday, April 5, 2016 at 11:52 PM >

Re: Extending the “No Instance Available” timeout

2016-04-05 Thread OC
e log should appear in /tmp/WebObjectsLog. The ultimate solution, of course, would be background processing and/or paging, as others already recommended; but first you need to find the particular cause of the long processing, which might be sometimes a bit hairy. All

fix sample code: an ugly error

2016-04-01 Thread OC
Darn, I should have copied the actual code, whatever unintelligible it is :( Forgot the line which encaches new object, and which actually -- far as I understand -- caused the problem: On 1. 4. 2016, at 19:17, OC <o...@ocs.cz> wrote: > the gist is this: > > def theValue

an ugly error

2016-04-01 Thread OC
in an ECTXT which contains unsaved changes? Or am I completely at wrong track, and the cause of my problem (i.e., that very old and completely stale value has been saved into my cacheTo1Relationship) must lay elsewhere? Thanks a lot for any advice, OC

Re: Modeller/Mac

2016-03-29 Thread OC
In case anybody happens to be interested -- the archive at ocs.cz was replaced by https://github.com/jvanek/EOModeler-OSX All the best, OC On 27. 3. 2016, at 4:19, OC <o...@ocs.cz> wrote: > Well I seriously doubt this would really help anyone, but just in case. > > Since I

Re: Modeller/Mac

2016-03-28 Thread OC
n build system based on the ideas. Whilst I do intend to make those scripts generic enough, alas, so far I had no time for that :( All the best, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list

Modeller/Mac

2016-03-26 Thread OC
with the code. There's only one guarantee: it won't work well. All the best, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription

Model: batchFaultingMaxSize vs maxNumberOfInstancesToBatchFetch

2016-03-25 Thread OC
you very much, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev

prevent memory drain through sessions?

2016-03-24 Thread OC
handleSessionRestorationErrorInContext redirecting to a static address without a session ID, or something like that? Thanks, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help

ERXDisplayGroup.filteredObjects cached?

2016-03-22 Thread OC
? Not that it would be that much difficult; I just hate to implement in my own and clumsy way, with a possibility to flush the cache too late etc., things which are already done right somewhere :) Thanks, OC ___ Do not post admin requests to the list

Re: “undelete”?

2016-03-21 Thread OC
to create an ERXEC subclass, and globally set it up so that “wherever and how-ever an EC gets created, it will always be my class”? Thanks a lot, OC On 21. 3. 2016, at 21:23, Chuck Hill <ch...@gevityinc.com> wrote: > As a first idea, you could make an EC subclass that was able to

“undelete”?

2016-03-21 Thread OC
the other objects, just not deleting a couple of special ones (nor their owning relationships). Thanks, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help

Re: Quick EOModel Column Locking ?

2016-03-20 Thread OC
ange just by storing in the DB. And of course, you (almost) never want to lock BLOBs. All the best, OC > >> On Mar 18, 2016, at 11:11 AM, Chuck Hill <ch...@gevityinc.com> wrote: >> >> Hi Jeff, >> >> Yes, if a column is not marked as locki

Solved: derived attributes in qualifier?

2016-03-13 Thread OC
D'oh. Indeed there was a typo in my model (again caused by batch renaming). After fixing, the derived attributes in qualifiers work all right. Thanks, OC On 12. 3. 2016, at 1:23, OC <o...@ocs.cz> wrote: > Is it normal that one can't use derived attributes in qualifier (when > fetc

derived attributes in qualifier?

2016-03-11 Thread OC
a lot, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail

Re: FrontBase SQL: date formatting, „local variable“?

2016-03-11 Thread OC
Well... On 11. 3. 2016, at 22:06, OC <o...@ocs.cz> wrote: > Still, it can be solvable (perhaps even easily) > > (a) in standard SQL92 which I don't know well enough > (b) in some FrontBase-specific extension > > which is why I am asking. ... without better knowledg

Re: FrontBase SQL: date formatting, „local variable“?

2016-03-11 Thread OC
I am asking. > This is not something you can do client-side? Not easily; I would rather need to implement it as a modelled derived attribute. If it proves impossible, I can mangle the data client-side, but it would get pretty messy: those are still the rawrows, no entity code there to help. Thanks a lot, OC >

FrontBase SQL: date formatting, „local variable“?

2016-03-11 Thread OC
(year FROM mydate) AS VARCHAR(4)) || CAST(EXTRACT(month FROM mydate) AS VARCHAR(2)) || ... END Can this be done anyhow? Thanks a big lot, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list

(col1,col2) in ((a,b), (c,d), ...)?

2016-03-10 Thread OC
of EOAndQualifiers :/ Thanks a lot! OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects

Re: a trick to model a complex derived relationship?

2016-03-07 Thread OC
Chuck, short version: with key (not keypath) restrictingQualifier it, alas, does not work either. Thanks again a big lot for all the help! OC Long version if anybody interested: (a) given there are two entities, Source and Destination, and a relationship Source.rel ->> Destination (b)

Re: a trick to model a complex derived relationship?

2016-03-06 Thread OC
OF to achieve your goal. It > might not work. Of course, self-evidently EOF was not designed to do things like this, and it'll be rather a luck if it works. If the worst comes to the worst, I can go back to my three-phase-manual implementation, fetching PKs at first, and then “modelling” the cond

Re: a trick to model a complex derived relationship?

2016-03-06 Thread OC
odge that. Thanks a lot! > On 2016-03-02, 12:18 PM, "OC" <o...@ocs.cz> wrote: > >> Chuck, >> >> On 2. 3. 2016, at 19:32, Chuck Hill <ch...@gevityinc.com> wrote: >> >>> There is no way to filter/qualify relationships in the model.

Re: a trick to model a complex derived relationship?

2016-03-02 Thread OC
Chuck, On 2. 3. 2016, at 21:18, OC <o...@ocs.cz> wrote: >> Defining additional entities with the appropriate restricting qualifiers for >> these conditions might possibly work. Then you could define the flattened >> relationship in terms of these restricted enti

Re: a trick to model a complex derived relationship?

2016-03-02 Thread OC
changed? If not, is there a way to lock out „any kind of usage of a model group, anywhere“ while I am changing the model? Thanks a very big lot again, OC > On 2016-03-01, 11:25 AM, > "webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of > ocs.cz" <web

SOLVED: slooow DB access at the deployment site (was: relationship count without fetching)

2016-02-29 Thread OC
Oh, forget it. It was the most obvious of possible reasons: they forgot to set up a DB index. Oh, sigh. Anyway, thanks for all the help! OC On 29. 2. 2016, at 18:30, OC <o...@ocs.cz> wrote: > Well I have implemented count using objectCountForToManyRelationship, and > found it i

slooow DB access at the deployment site (was: relationship count without fetching)

2016-02-29 Thread OC
ions). My test machine runs Java 1.7.0_13 / Mac OS X 10.8.5 / FrontBase 7.2.18 64 bit (localhost server, too); might anything of this cause the vast difference? Does not seem to me, but of course, I might be overlooking something of importance. Thanks

Re: Use case for a "case insensitive equals" qualifier

2016-02-25 Thread OC
Samuel, thanks a lot. D'oh, I definitely should have noticed (and checked) the other application! My bad. All the best, OC On 25. 2. 2016, at 19:10, Samuel Pelletier <sam...@samkar.com> wrote: > Hi OC, > > Case insensitivity are locale specific, there is no such thing as un

Re: Use case for a "case insensitive equals" qualifier

2016-02-25 Thread OC
with e.g., "é" works, with e.g., "š" it does not. I've tried to write to the FB support long ago, but got no answer. Does somebody perhaps either have a proper CaseInsensitive.coll1 for FrontBase, or at least a description of its format, so that one could fix the file onesel

raw rows post-processing, (im)mutable?

2016-02-23 Thread OC
or later the hell will break loose? Thanks! OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman

Re: import from an external DB

2016-02-23 Thread OC
Thanks again, (for about a zillionth time)! That was precisely the culprit; fixed and works like a charm. (Having found it, I even can track it back to a mistake when batch-renaming dupped entities, so no mystery anymore.) All the best, OC On 23. 2. 2016, at 21:53, Chuck Hill <

Re: import from an external DB

2016-02-23 Thread OC
) at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069) at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1308) at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:) === On 23. 2. 2016, at 21:41, OC &l

Re: import from an external DB

2016-02-23 Thread OC
base name. To be extra sure, I fgrepped my complete project for "JavaJCEBCAdaptor", found nothing at all (there is a couple of "JavaJDBCAdaptor" occurrences, of course). Where the h. can it come from?!? Thanks, OC ___ Do not po

Re: import from an external DB

2016-02-23 Thread OC
ly -- all the other stuff is same as the main model's, which works like a charm. I have even tried to use my main model instead of the import one, and (with local entity name and local attribute names) it works, as presumed. Why it does not with the import model? Will be grateful for any

Re: import from an external DB

2016-02-22 Thread OC
add one programmatically on-the-fly just before the fetch, never tried that... wouldn't that bring havoc though if more threads fetched concurrently and each extended the model its own way? Thanks a very big lot, OC > On 2016-02-21, 6:40 AM, > "webobjects-dev-bounces+chill=gevityinc@

read-only binding

2016-02-04 Thread OC
-nothing setter, but that's ugly. Thanks, OC * but for a possibility to set synchronizesVariablesWithBindings to NO and manage all bindings manually, which would be sort of overkill ___ Do not post admin requests to the list. They will be ignored

check whether a relationship is empty, efficiently

2016-02-03 Thread OC
(and in a far better way than I would do it myself)? Thanks for any advice, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription

Re: Back with weird problems: PK generation keeps generating same PK... up to a moment.

2015-05-13 Thread OC
this could happen once, let alone multiple times. If that indeed was the culprit, is there a way to prevent the same problem if it occurs again? Thanks, OC On 2015-05-12, 1:56 PM, OC wrote: Hello there, my application, among others, generates and stores audit records. The appropriate

Re: Back with weird problems: PK generation keeps generating same PK... up to a moment.

2015-05-13 Thread OC
? OC, which database are you using FrontBase. Let me see the logs... at the server, there is 5.2.1g, a pretty old one. Other sw versions: Groovy 2.3.8 / WebObjects 5.4.3 / ERExt's 6.1.3-SNAPSHOT / Java 1.6.0_65 / Mac OS X 10.6.8. with which connection settings for isolation and locking Read

Back with weird problems: PK generation keeps generating same PK... up to a moment.

2015-05-12 Thread OC
in the future? Thanks a lot, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev

blocking other instances from activity

2015-03-05 Thread OC
in a couple of weeks or months raise its ugly head and bite me in the tender parts? Thanks a lot, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe

Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext

2015-02-25 Thread OC
“ -- none of parts of my code which might do that had any right to be run at the moment. Thanks and all the best, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help

FrontBase triggers howto (was: Never save objects which don't pass a test (was: searching for a weird deletion))

2015-02-21 Thread OC
convoluted work-around for the desired behaviour! As always, I'll be grateful for any advice, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update

Re: Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-21 Thread OC
is ambiguous. Well it is -- all the tables in question contain such a column -- but how should I prefix it to tell the server „this is the CREATION_DATE of the row which is being inserted“? Thanks a lot, OC ___ Do not post admin requests to the list

Re: Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-21 Thread OC
Anyway, back to the original question -- On 20. 2. 2015, at 18:27, OC o...@ocs.cz wrote: Actually _this_ should not be weird, this should be quite a normal code; the only requirement is that check-and-save, i.e., conceptually, === if (TEST(eo.someRelationship().someAttribute

Re: Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-21 Thread OC
and all the best, OC On 2015-02-21, 3:42 AM, OC wrote: Anyway, back to the original question -- On 20. 2. 2015, at 18:27, OC o...@ocs.cz wrote: Actually _this_ should not be weird, this should be quite a normal code; the only requirement is that check-and-save, i.e., conceptually

Re: searching for a weird deletion

2015-02-20 Thread OC
. If that didn’t catch it, then I’d dig around in the WO source to find where in the save changes process owns destination comes into play. The WO sources are available (though perhaps unofficially)? I have thought Apple keeps them well locked out. How can one get them? Thanks again a very big lot, OC

followup: searching for a weird deletion

2015-02-20 Thread OC
On 20. 2. 2015, at 12:52, OC o...@ocs.cz wrote: (Hmmm... now it occurred to me, perhaps I might set up an UNIQUE db restraint? That would probably simplify the code mightily, _and_ work for multi-instance case just as well...) Hm, I need a holiday. _Now_ I have recalled that I have

Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-20 Thread OC
{ OSC.unlock() } === Are even these patters unsafe? Why? Thanks a big lot, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your

WO app building (was: searching for a weird deletion)

2015-02-20 Thread OC
mess I won't mention here :)). That all said and triple emphasized -- whomemer wants to, the full scripts are freely available at http://www.ocs.cz/CD/ocswobuildxcode.zip All the best, OC ___ Do not post admin requests to the list

Re: Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-20 Thread OC
TESTing, the participating objects are a proper snapshot of database contents of some moment in the past (b) when saving, the code must make sure that if the values of the snapshot did change, the saving won't happen That should be sufficient, should it not? Does it make sense? Thanks a lot, OC

searching for a weird deletion

2015-02-19 Thread OC
the deletion? I've tried to observe EOEditingContext.ObjectsChangedInEditingContextNotification, but it seems it does not get posted even if I add a removeObjectFromBothSides... manually to test. Will be grateful for any advice, OC ___ Do not post admin

Re: relationship value different in another EC (was: ordered and filtered fault efficiency)

2015-02-17 Thread OC
is, for all those 20-odd years I am using EOF without any bigger problem I have always used the default setting of WOAllowsConcurrentRequestHandling=NO, and thus I indeed am pretty inexperienced with this, alas.) Thanks again, OC On 17. 2. 2015, at 18:30, Ramsey Gurley rgur...@smarthealth.com wrote: I

relationship value different in another EC (was: ordered and filtered fault efficiency)

2015-02-17 Thread OC
On 16. 2. 2015, at 9:52, OC o...@ocs.cz wrote: Nevertheless with the last valid thing I already took your advice and modelled it -- I dodged changing the DB for I was lucky and I happened to have in my model one legacy unused INTEGER attribute, which I used for a FK -- and preliminarily

Re: way too many SELECTs?

2015-02-16 Thread OC
all of A’s b() to insert the single new B into it. Darn -- this is the normal EOF behaviour?!? For the last week, I am trying to find the bug in my code which causes those superfluous fetches :-O Thanks a lot, OC ___ Do not post admin requests

Re: ordered and filtered fault efficiency

2015-02-16 Thread OC
legacy unused INTEGER attribute, which I used for a FK -- and preliminarily, it seems to work excellently. Thanks a lot! OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev

Re: caching global IDs does not work as expected (followup: ordered and filtered fault efficiency)

2015-02-16 Thread OC
it, but as a work-around, I am logging out CFBundleShortVersionString from the Info.plist of the ERExtensions.jar, and it reads 6.1.3-SNAPSHOT -- should be reasonably up-to-date. I will try and find time to read more later. Thanks a very big lot! all the best, OC

Re: ordered and filtered fault efficiency

2015-02-15 Thread OC
release I will do that. Thanks a lot, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options

saveChanges refaults relationships which target changed entities (was: way too many SELECTs?)

2015-02-15 Thread OC
, OC ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail

  1   2   >