Re: Generate SQL fails

2008-04-06 Thread Rams
I'm trying to Generate SQL to create my tables and it is failing. My searching leads me to believe it is due to my setup as described here... http://wiki.objectstyle.org/confluence/display/WOL/mail/3047829 I'm using: OS X 10.5 WO 5.4.1 WOLips 3.5? MySQL 5.0.51a and Connector J 5.0.8. Is

Re: ERXMigration Problem with Multiple Models

2008-04-06 Thread David LeBer
On 6-Apr-08, at 9:52 PM, Aleksey Novicov wrote: Thanks Mike. Where is the signup for the Wonder list? I do have a third model for accessing legacy data in a separate database, but on the same MySQL server. There are a couple of

Re: ERXMigration Problem with Multiple Models

2008-04-06 Thread Aleksey Novicov
Thanks Mike. Where is the signup for the Wonder list? I do have a third model for accessing legacy data in a separate database, but on the same MySQL server. There are a couple of relationships that traverse models to the legacy data. But that third model does not use migrations at all. I

Re: DB2 and WebObjects

2008-04-06 Thread Chuck Hill
On Apr 6, 2008, at 5:48 PM, Andrew Lindesay wrote: Hello Chuck; I Googled it when you said that as it surprised me. The answer I found was that it did not. Hmmm darn. I was hoping that I had spelt deferred wrong or something. :) I see DB2 has a feature to turn constraints off/on insi

Re: DB2 and WebObjects

2008-04-06 Thread Andrew Lindesay
Hello Chuck; I Googled it when you said that as it surprised me. The answer I found was that it did not. Hmmm darn. I was hoping that I had spelt deferred wrong or something. :) I see DB2 has a feature to turn constraints off/on inside a transaction so I am guessing it would be possib

Re: DB2 and WebObjects

2008-04-06 Thread Chuck Hill
On Apr 6, 2008, at 5:38 PM, Andrew Lindesay wrote: Hello Chuck; Thanks for the overview on that one. No deferred constraints. Sigh. DB2 just dropped a notch in the respect that I had for it. I'm actually not 100% sure on the deferred RI checks for DB2 so leave the respect in place for

Re: DB2 and WebObjects

2008-04-06 Thread Andrew Lindesay
Hello Chuck; Thanks for the overview on that one. No deferred constraints. Sigh. DB2 just dropped a notch in the respect that I had for it. I'm actually not 100% sure on the deferred RI checks for DB2 so leave the respect in place for now! I was wondering if somebody here knows? I see

Re: DB2 and WebObjects

2008-04-06 Thread Chuck Hill
Hi Andrew, On Apr 6, 2008, at 5:09 PM, Andrew Lindesay wrote: Hello; A couple of years ago I was investigating DB2 and WO. A couple of people were kind enough to point me in the right direction. I've got another question. I could be wrong, but suspect that DB2 doesn't support deferred

DB2 and WebObjects

2008-04-06 Thread Andrew Lindesay
Hello; A couple of years ago I was investigating DB2 and WO. A couple of people were kind enough to point me in the right direction. I've got another question. I could be wrong, but suspect that DB2 doesn't support deferred RI checks -- if this is the case, how are people managing to w

Re: Are one-to-one relationships valid?

2008-04-06 Thread Jeff Schmitz
Hi Daniel, I think I just had the same question here about a week ago. Here's the answer that worked for me: You can specify «1 to 1» relationship with Entity Modeler. If the destination cannot be null, use the same id in the two tables. -In Properties > Basic select : the cardinality «To

Re: ERXMigration Problem with Multiple Models

2008-04-06 Thread Mike Schrag
This should really be on the Wonder list rather than wo-dev, but I just committed a fix for this ... I saw this once before but didn't end up looking into it. Is it possible you are depending on another framework that is bringing in a migration that only is being discovered because of a re

Re: Are one-to-one relationships valid?

2008-04-06 Thread Daniel DeCovnick
On Apr 6, 2008, at 4:45 PM, Ray Kiddy wrote: On Apr 6, 2008, at 1:13 PM, Daniel DeCovnick wrote: On Apr 6, 2008, at 3:36 PM, Ray Kiddy wrote: On Apr 6, 2008, at 11:53 AM, Daniel DeCovnick wrote: I've got a situation where I'm about 99% sure I should use a one- to-one relationship. I've

Re: Generate SQL fails

2008-04-06 Thread Q
On 06/04/2008, at 5:33 PM, Rams wrote: Wouldn't that require downgrading my entire system to Tiger? Honestly, that doesn't sound very reasonable. I've been using Leopard for six months. It would be rather difficult to uninstall/ downgrade now. I think it would be easier to learn enou

Re: Are one-to-one relationships valid?

2008-04-06 Thread Anjo Krank
Easy: image both have a shared parent entity and there are relationships to this entity. then the keys *must* be different in order to have EOF tell the objects apart. Am 06.04.2008 um 22:13 schrieb Daniel DeCovnick: I can't think of a case where I'd ever need the primary keys to be differe

Re: Are one-to-one relationships valid?

2008-04-06 Thread Ray Kiddy
On Apr 6, 2008, at 1:13 PM, Daniel DeCovnick wrote: On Apr 6, 2008, at 3:36 PM, Ray Kiddy wrote: On Apr 6, 2008, at 11:53 AM, Daniel DeCovnick wrote: I've got a situation where I'm about 99% sure I should use a one- to-one relationship. I've got about 100 attributes that can be logicall

Re: Are one-to-one relationships valid?

2008-04-06 Thread Daniel DeCovnick
On Apr 6, 2008, at 3:36 PM, Ray Kiddy wrote: On Apr 6, 2008, at 11:53 AM, Daniel DeCovnick wrote: I've got a situation where I'm about 99% sure I should use a one- to-one relationship. I've got about 100 attributes that can be logically divided into 14 different categories. A single entity

Re: Are one-to-one relationships valid?

2008-04-06 Thread Guido Neitzer
On 06.04.2008, at 12:53, Daniel DeCovnick wrote: I've got a situation where I'm about 99% sure I should use a one-to- one relationship. I've got about 100 attributes that can be logically divided into 14 different categories. A single entity (Note) would then have one of each of these catego

Re: Are one-to-one relationships valid?

2008-04-06 Thread Ray Kiddy
On Apr 6, 2008, at 11:53 AM, Daniel DeCovnick wrote: I've got a situation where I'm about 99% sure I should use a one-to- one relationship. I've got about 100 attributes that can be logically divided into 14 different categories. A single entity (Note) would then have one of each of these c

Are one-to-one relationships valid?

2008-04-06 Thread Daniel DeCovnick
I've got a situation where I'm about 99% sure I should use a one-to- one relationship. I've got about 100 attributes that can be logically divided into 14 different categories. A single entity (Note) would then have one of each of these categories (if modeled as separate entities). There's n

Re: Session termination

2008-04-06 Thread Chuck Hill
Hi Miguel, On Apr 6, 2008, at 8:19 AM, Miguel Arroz wrote: Quick question: is the sleep() method called when the session terminates due to a timeout (ie, not used for 60 minutes)? IE, can I trust that sleep() will occur with isTerminating being true on that situation? No, the opposite

Re: Setting the Session class name

2008-04-06 Thread Chuck Hill
Override the application method: public WOSession createSessionForRequest(WORequest aRequest) On Apr 6, 2008, at 9:34 AM, Miguel Arroz wrote: Hi! How can I tell WebObjects to use the SomeOtherSession class instead of the typical Session class? Surprisingly, I can't find this anywhere...

Re: Inline bindings: attribute string value begining with $

2008-04-06 Thread Mike Schrag
But you *can* set the pre- and postfix chars, so the question was how to escape them. Which is the same problem how to escape "[" at the start. Uh ... what he said :) ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-d

Re: Inline bindings: attribute string value begining with $

2008-04-06 Thread Mike Schrag
With WO 5.4 the syntax should be: By default the dynamic binding use [] and not $. So how do you escape the dynamic binding prefix in 5.4 if you want to show it in the string? For instance, if you actually want the string "[amount]" to appear, what does the binding look like? ms ___

Re: Inline bindings: attribute string value begining with $

2008-04-06 Thread Anjo Krank
But you *can* set the pre- and postfix chars, so the question was how to escape them. Which is the same problem how to escape "[" at the start. Cheers, Anjo Am 06.04.2008 um 19:42 schrieb Mr. Pierre Frisch: With WO 5.4 the syntax should be: By default the dynamic binding use [] and not

Re: Inline bindings: attribute string value begining with $

2008-04-06 Thread Mr. Pierre Frisch
With WO 5.4 the syntax should be: By default the dynamic binding use [] and not $. Pierre -- Pierre Frisch [EMAIL PROTECTED] On Apr 5, 2008, at 1:15, Mike Schrag wrote: Oh, I assumed you were using Wonder with the $ syntax ... I have no idea how to escape the attribute prefix in 5.4. ms

Re: Setting the Session class name

2008-04-06 Thread Lachlan Deck
On 07/04/2008, at 2:34 AM, Miguel Arroz wrote: How can I tell WebObjects to use the SomeOtherSession class instead of the typical Session class? Surprisingly, I can't find this anywhere... public Application { public Class _sessionClass() {...} } with regards, -- Lachlan Deck _

Setting the Session class name

2008-04-06 Thread Miguel Arroz
Hi! How can I tell WebObjects to use the SomeOtherSession class instead of the typical Session class? Surprisingly, I can't find this anywhere... Yours Miguel Arroz Miguel Arroz http://www.terminalapp.net http://www.ipragma.com smime.p7s Description: S/MIME cryptographic signatur

Re: EO Programming Guide ?s

2008-04-06 Thread David LeBer
On 6-Apr-08, at 12:03 PM, David LeBer wrote: On 6-Apr-08, at 11:14 AM, Jeff Schmitz wrote: As I read on, I'm guessing that "the cache" they refer to is actually the "Snapshot" of the database described as: "When an EODatabaseContext fetches objects from a database, a snapshot is recorded

Re: EO Programming Guide ?s

2008-04-06 Thread David LeBer
On 6-Apr-08, at 11:14 AM, Jeff Schmitz wrote: As I read on, I'm guessing that "the cache" they refer to is actually the "Snapshot" of the database described as: "When an EODatabaseContext fetches objects from a database, a snapshot is recorded of the state of the fetched database row. A

Session termination

2008-04-06 Thread Miguel Arroz
Hi! Quick question: is the sleep() method called when the session terminates due to a timeout (ie, not used for 60 minutes)? IE, can I trust that sleep() will occur with isTerminating being true on that situation? Yours Miguel Arroz Miguel Arroz http://www.terminalapp.net http://www

Re: EO Programming Guide ?s

2008-04-06 Thread Jeff Schmitz
As I read on, I'm guessing that "the cache" they refer to is actually the "Snapshot" of the database described as: "When an EODatabaseContext fetches objects from a database, a snapshot is recorded of the state of the fetched database row. A snapshot is a dictionary of a row’s primary ke

EO Programming Guide ?s

2008-04-06 Thread Jeff Schmitz
Hello, I've been reading the Webobjects Enterprise Objects Programming Guide and had a couple quick questions about it. First, are editing contexts usually created per session? It shows a couple of pictures indicating this, but it never really comes out and says (at least that I found

Re: Error in Eclipse after migrating XCode project

2008-04-06 Thread Kevin Windham
On Apr 6, 2008, at 1:56 AM, Guido Neitzer wrote: On 05.04.2008, at 22:34, Kevin Windham wrote: I'm getting an error that I can't figure out. The message is: "There is no key 'user' for the keypath 'session' in HSCWrapper." In my Session.java file I have this. public User user; This code wa

Re: Generate SQL fails

2008-04-06 Thread David LeBer
On 6-Apr-08, at 3:33 AM, Rams wrote: I'm trying to Generate SQL to create my tables and it is failing. My searching leads me to believe it is due to my setup as described here... http://wiki.objectstyle.org/confluence/display/WOL/mail/3047829 I'm using: OS X 10.5 WO 5.4.1 WOLips 3.5? My

Re: Error in Eclipse after migrating XCode project

2008-04-06 Thread David Avendasora
I'm guessing that the Session class that your application is using is NOT _your_ Session class but a Session class from one of the frameworks you are using. Xcode didn't use packages, but when you migrated to WOLips, you probably did put your classes in packages (as you should). Since and

How to change the selection of AjaxSelectionList

2008-04-06 Thread Helmut Schottmüller
Hi, I tried to use AjaxSelectionList. Additional to the example in the AjaxExamples I like to add buttons to move elements up and down. Moving up I realised in the following way: "Move up" is bound to this method: int index = itemlist.indexOfObject(selectedItem);

Re: WODirectConnectEnabled=false again

2008-04-06 Thread Lachlan Deck
On 06/04/2008, at 4:35 PM, Lachlan Deck wrote: Tailing the apache access log -- after a long delay I get the following output: ::1 - - [06/Apr/2008:16:32:05 +1000] "GET /cgi-bin/WebObjects/ MyApp.woa/-51231 HTTP/1.1" 500 65 ::1 - - [06/Apr/2008:16:32:35 +1000] "GET /favicon.ico HTTP/1.1" 404

Re: Generate SQL fails

2008-04-06 Thread Lachlan Deck
On 06/04/2008, at 5:33 PM, Rams wrote: I'm trying to Generate SQL to create my tables and it is failing. My searching leads me to believe it is due to my setup as described here... http://wiki.objectstyle.org/confluence/display/WOL/mail/3047829 I'm using: OS X 10.5 WO 5.4.1 WOLips 3.5? My

Re: Generate SQL fails

2008-04-06 Thread Rams
I'm trying to Generate SQL to create my tables and it is failing. My searching leads me to believe it is due to my setup as described here... http://wiki.objectstyle.org/confluence/display/WOL/mail/3047829 I'm using: OS X 10.5 WO 5.4.1 WOLips 3.5? MySQL 5.0.51a and Connector J 5.0.8. Is t