Re: EOObjectNotAvailableException: prepareForSaveWithCoordinator

2008-10-16 Thread Lachlan Deck
On 17/10/2008, at 6:51 AM, Stefan Klein wrote: i got the following exception: com.webobjects.eoaccess.EOObjectNotAvailableException: prepareForSaveWithCoordinator: Cannot save the object with globalID _EOIntegralKeyGlobalID[Benutzer (java.lang.Long)4559]. The row referenced by this global

Re: NSTimestamp.timestampByAddingGregorianUnits considered harmful

2008-10-16 Thread Lachlan Deck
On 17/10/2008, at 6:15 AM, Ralf Schuchardt wrote: Hi, I have modelled calendar entries, which have a timestamp attribute. I wanted to build a qualifier that matches all entries within a month so I created start and end timestamps programatically. The start timestamp is no problem. To get

Having trouble with XcodeMigration

2008-10-16 Thread denise . howard
I'm finally taking the plunge to leave Xcode behind and migrate our frameworks and applications to Eclipse. I've installed WOLips, and I've carefully followed the instructions for Pascal Robert's XcodeMigration tool (great visual tutorial instructions, btw). However, when I get to the point of

eogenerate ant task?

2008-10-16 Thread Ash Mishra
Hi all, I'm wondering if there is an Ant task for WOLips's eogenerator that can be included in the build.xml of a project? I'm using wolips 3.3 and Eclipse 3.3.1. Right now I have a .eogen file, which I manually can run in Eclipse to generate my entity classes. Is there a way to automate

Re: Handling Relationships trough migrations...

2008-10-16 Thread Mike Schrag
hehehe.. before posting the message I read the documentation you were talking about, after that I post it. I was thinking in a method called, _setForeignKeyDestination(ERXMigrationColumn foreignKeyDestination) but I dunno if this is alright. Did you do what David Holt recommended and have

Re: Handling Relationships trough migrations...

2008-10-16 Thread WebObjects
hehehe.. before posting the message I read the documentation you were talking about, after that I post it. I was thinking in a method called, _setForeignKeyDestination(ERXMigrationColumn foreignKeyDestination) but I dunno if this is alright. Gus... PS the easyWay(Question q) method retur

Re: Handling Relationships trough migrations...

2008-10-16 Thread David Avendasora
Of course, show him how to do things the _easy_ way. sheesh. :-P Dave On Oct 16, 2008, at 4:41 PM, David Holt wrote: There is a button in EntityModeler that will create the Model0 for you. Do that and you will be able to see the correct code for future migrations. David On 16-Oct-08,

Re: Handling Relationships trough migrations...

2008-10-16 Thread David Avendasora
Hi Gus, The best place to look for Project Wonder documentation is in the package summaries. Google the class you are working with, then click the package link at the top of the API page. http://webobjects.mdimension.com/wonder/api/er/extensions/migration/package-summary.html This should g

EOObjectNotAvailableException: prepareForSaveWithCoordinator

2008-10-16 Thread Stefan Klein
Hi, i got the following exception: com.webobjects.eoaccess.EOObjectNotAvailableException: prepareForSaveWithCoordinator: Cannot save the object with globalID _EOIntegralKeyGlobalID[Benutzer (java.lang.Long)4559]. The row referenced by this globalID was missing from the database at the time a

Handling Relationships trough migrations...

2008-10-16 Thread WebObjects
Hello well I think My model its fine now, the FK are set as david told me... I don't know how I passed those ones, yesterday I had headache and didn't see the msitake. Anyway, I have been looking into Migrations, due that I have done changes to the EOModel, and Im tired of changing the db

Re: NSTimestamp.timestampByAddingGregorianUnits considered harmful

2008-10-16 Thread Ralf Schuchardt
Hi, I have modelled calendar entries, which have a timestamp attribute. I wanted to build a qualifier that matches all entries within a month so I created start and end timestamps programatically. The start timestamp is no problem. To get the end timestamp, I used NSTimestamp.timestampB

Re: credit card processing

2008-10-16 Thread David Holt
No, but there is this project from CodeFab that was talked about at WOWODC in 2007: http://www.codefab.com/wordpress/2007/10/10/codefab-releases- wogooglecheckout-xml-webservices-sample-code/ On 16-Oct-08, at 11:34 AM, Josh Paul wrote: Possibly. I haven't looked too much at it. Are you us

Re: credit card processing

2008-10-16 Thread Ramsey Gurley
No, can't say I have yet, but since that solution uses sun's url connection classes, you may have issues with it not being able to create more than two persistent connections at a time... So I guess it all depends on how busy you expect to be :-) http://homepage.mac.com/kelleherk/iblog/C14

[SOLVED] Re: Locking problem

2008-10-16 Thread Florijan Stamenkovic
This evil hack seems to do it, as far as I've tested it... Thanks everyone for the input, F On Oct 16, 2008, at 11:44, Florijan Stamenkovic wrote: I'll try making all my overridden EC's methods synchronize on the EODistributedObjectStore. ___ Do n

Re: credit card processing

2008-10-16 Thread Josh Paul
Thanks. I'll give it a shot. Are you using this in production? On Oct 16, 2008, at 11:27 AM, Ramsey Gurley wrote: http://lists.apple.com/archives/Webobjects-dev/2005/Jun/msg00348.html On Oct 16, 2008, at 2:20 PM, Josh Paul wrote: Before I head down the path of implementing cc processing, I

Re: credit card processing

2008-10-16 Thread Ramsey Gurley
http://lists.apple.com/archives/Webobjects-dev/2005/Jun/msg00348.html On Oct 16, 2008, at 2:20 PM, Josh Paul wrote: Before I head down the path of implementing cc processing, I figured I'd ping here to see if anyone has available code for such. Although I'd prefer to use authorize.net, I'm o

credit card processing

2008-10-16 Thread Josh Paul
Before I head down the path of implementing cc processing, I figured I'd ping here to see if anyone has available code for such. Although I'd prefer to use authorize.net, I'm open to others. TIA ___ Do not post admin requests to the list. They will

Re: NSTimestamp.timestampByAddingGregorianUnits considered harmful

2008-10-16 Thread Chuck Hill
On Oct 16, 2008, at 9:52 AM, Timo Hoepfner wrote: Hi, I have modelled calendar entries, which have a timestamp attribute. I wanted to build a qualifier that matches all entries within a month so I created start and end timestamps programatically. The start timestamp is no problem. To get

NSTimestamp.timestampByAddingGregorianUnits considered harmful

2008-10-16 Thread Timo Hoepfner
Hi, I have modelled calendar entries, which have a timestamp attribute. I wanted to build a qualifier that matches all entries within a month so I created start and end timestamps programatically. The start timestamp is no problem. To get the end timestamp, I used NSTimestamp.timestampByA

Re: Locking problem

2008-10-16 Thread Florijan Stamenkovic
Peter, Thanks for the idea! It is not the problem, but it made me realize that there must be two locks in the game. Since one of the threads was waiting on the EC's lock (or my custom Lock, comes out the same), and the other thread was in a synchronized method in EODistributedObjectStore (

Re: EO Caching with global id 'fetching'

2008-10-16 Thread Jonathan Ricker
Thanks! Just what I needed. -- Jonathan On Oct 16, 2008, at 10:55 AM, Q wrote: Take a look at EOEditingContext.setRetainsRegisteredObjects(...) On 17/10/2008, at 12:45 AM, Jonathan Ricker wrote: Answering my own question from my experimenting. The reason there was little to no caching wa

Re: EO Caching with global id 'fetching'

2008-10-16 Thread Mike Schrag
Take a look at EOEditingContext.setRetainsRegisteredObjects(...) And also EOEditingContext.setRunOutOfMemoryPlease(..) ;) ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple

Re: modify the db from EOModel without risking the data

2008-10-16 Thread WebObjects
WOW I didn't realize that one. oops my big mistake thats what happens when you have headache. Fixing it. Im gonna give a loot at migrations (so I don't have to change directly form the db).. I don't remember why I didn't use it, oh yes I remember now, because I was having problem with frontba

Re: EO Caching with global id 'fetching'

2008-10-16 Thread Q
Take a look at EOEditingContext.setRetainsRegisteredObjects(...) On 17/10/2008, at 12:45 AM, Jonathan Ricker wrote: Answering my own question from my experimenting. The reason there was little to no caching was because there were no hard references to the objects so they would fall out of t

Re: EO Caching with global id 'fetching'

2008-10-16 Thread Jonathan Ricker
Answering my own question from my experimenting. The reason there was little to no caching was because there were no hard references to the objects so they would fall out of the cache quicklyr. Now that I think about it it makes perfect sense, the eo cache would have to be using something

Re: modify the db from EOModel without risking the data

2008-10-16 Thread David Avendasora
You are getting closer! Okay, now the relationships are right in terms of their to-one/to-many type, BUT - and this is a HUGE BUT - you have the source and destination attributes wrong for every relationship. Here's how they should be: Employee.id <->> EmployeeXTurn.employeeID Turn.id <->>