Re: EOGenerator and prototypes

2007-05-14 Thread Lachlan Deck
On 15/05/2007, at 2:41 PM, Lachlan Deck wrote: On 15/05/2007, at 2:30 PM, Chuck Hill wrote: On May 14, 2007, at 9:24 PM, Lachlan Deck wrote: Example prototype: MyPrototypes.eomodeld/ EOJDBCMySQLPrototypes.plist <...> { allowsNull = Y; columnName = "";

Re: EOGenerator and prototypes

2007-05-14 Thread Lachlan Deck
On 15/05/2007, at 2:30 PM, Chuck Hill wrote: On May 14, 2007, at 9:24 PM, Lachlan Deck wrote: Example prototype: MyPrototypes.eomodeld/ EOJDBCMySQLPrototypes.plist <...> { allowsNull = Y; columnName = ""; externalType = NUMERIC; name = "decima

Re: EOGenerator and prototypes

2007-05-14 Thread Chuck Hill
On May 14, 2007, at 9:24 PM, Lachlan Deck wrote: Hi there, I've just reworked a model to utilise a prototypes model - but when eogenerating the classes I'm finding that I'm no longer getting BigDecimal, for example, in the signature but Number instead. e.g., // template snippet... publi

EOGenerator and prototypes

2007-05-14 Thread Lachlan Deck
Hi there, I've just reworked a model to utilise a prototypes model - but when eogenerating the classes I'm finding that I'm no longer getting BigDecimal, for example, in the signature but Number instead. e.g., // template snippet... public <$Attribute.javaValueClassName$> <$Attribute.name$

Re: Deadlock ...

2007-05-14 Thread Chuck Hill
On May 14, 2007, at 1:24 PM, Kieran Kelleher wrote: I was running pre-deployment tests on code which had not itself been changed and I got a deadlock. The only app change that I can think that might be affecting this is the fact that I have the EOF stack synchronizer turned on in this la

Re: [SOLVED] Direct Action needs Application's EOSharedEditingContext

2007-05-14 Thread Baiss Eric Magnusson
On May 14, 2007, at 2:13 PM, Chuck Hill wrote: Do you have multiple EOF stacks? If not, just use EOSharedEditingContext.defaultSharedEditingContext() Chuck Oh yes, that does it nicely. Thanks, Baiss On May 14, 2007, at 2:10 PM, Baiss Eric Magnusson wrote: In re-designing a WO app I ha

Re: Direct Action needs Application's EOSharedEditingContext

2007-05-14 Thread Chuck Hill
Do you have multiple EOF stacks? If not, just use EOSharedEditingContext.defaultSharedEditingContext() Chuck On May 14, 2007, at 2:10 PM, Baiss Eric Magnusson wrote: In re-designing a WO app I have worked on for a year the customer wants the "top level navigation" to go to about 60 differe

Direct Action needs Application's EOSharedEditingContext

2007-05-14 Thread Baiss Eric Magnusson
In re-designing a WO app I have worked on for a year the customer wants the "top level navigation" to go to about 60 different WOComponents from Direct Action calls, which are invoked by WOPopup's calling , with the additional binding menuEO.primaryKeyId>, thus passing a Primary Key ID to the

Re: Deadlock ...

2007-05-14 Thread Kieran Kelleher
Oops, sent to wrong list now sending to wodev --- I was running pre-deployment tests on code which had not itself been changed and I got a deadlock. The only app change that I can think that might be affecting

Re: StoredProcedures triggered by the model

2007-05-14 Thread Robert Walker
Yes. Ever used that approach? Did it work for you? Sorry, no I've not ever tried it myself. I try to limit myself to simple integer PKs (except in extreme circumstances like when dealing with legacy system, which in my case stored procedures we're practical anyway). Yes, they are genera

Re: StoredProcedures triggered by the model

2007-05-14 Thread Florijan Stamenkovic
Hi Robert, 1. Is this the technique you are using to trigger your stored procedures: http://developer.apple.com/documentation/WebObjects/UsingEOModeler/ 6WorkingWithEntities/chapter_6_section_5.html#//apple_ref/doc/uid/ TP30001018-CH206-BABGBCJE Yes. Ever used that approach? Did it work

Re: StoredProcedures triggered by the model

2007-05-14 Thread Robert Walker
1. Is this the technique you are using to trigger your stored procedures: http://developer.apple.com/documentation/WebObjects/UsingEOModeler/ 6WorkingWithEntities/chapter_6_section_5.html#//apple_ref/doc/uid/ TP30001018-CH206-BABGBCJE 2. Are your stored procedures doing something more compl

Re: lock an entity?

2007-05-14 Thread Kieran Kelleher
Just use optimistic locking (the little lock icon in Entity Modeler) and do a try/catch on ec.saveChanges and catch EOGeneralAdaptorException On May 14, 2007, at 2:01 PM, YL wrote: It's a config table, I want to make sure onle one person can change it at a time. Assume multiple people have

Re: lock an entity?

2007-05-14 Thread Chuck Hill
That sounds like pessimistic locking. WO is more oriented at optimistic locking, but that can get complex to handle with you have multiple instances (EOF handles this differently when conflicts happen within one EOF stack and when they happen across EOF stacks). I'd work out how to deal wi

Re: lock an entity?

2007-05-14 Thread YL
It's a config table, I want to make sure onle one person can change it at a time. Assume multiple people have the access for changing the table remotely. - Original Message - From: "Chuck Hill" <[EMAIL PROTECTED]> To: "YL" <[EMAIL PROTECTED]> Cc: Sent: Monday, May 14, 2007 10:58 AM Sub

Re: how to do a product->product-type->product-attributes with non pre-determined product-attributes?

2007-05-14 Thread Chuck Hill
On May 14, 2007, at 2:14 AM, Johan Henselmans wrote: I am settting up a database in which we want to store information about products and their attributes. However, we do not know in advance what attributes will be part of the product, apart from a few (price, date-available etc). So I c

Re: lock an entity?

2007-05-14 Thread Chuck Hill
Locking is at the editing context level. What are you trying to do? Chuck On May 12, 2007, at 7:08 PM, YL wrote: Is there a way to lock an entity to prevent other accesses to it (even refuse read/fetch) during the current transaction? Thanks -- Practical WebObjects - for developers who

Re: MSIE is not the postman

2007-05-14 Thread Chuck Hill
On May 13, 2007, at 10:33 PM, Thomas wrote: Chuck, as always, your advice was spot on. It was worth buying your book (amongst many other reasons) if it encouraged you to keep contributing to this forum. As if I could stop! :-) The system with the problem is a CMS. It turns out that th

Re: Java Client future

2007-05-14 Thread Chuck Hill
I am not an Apple person, but here is my guess: http://www.lyricsfreak.com/s/sex+pistols/god+save+the +queen_20123626.html :-P Chuck On May 14, 2007, at 6:10 AM, Florijan Stamenkovic wrote: Dear Apple people who are monitoring this list, PLEASE, be so kind to tell us what we can expect i

StoredProcedures triggered by the model

2007-05-14 Thread Florijan Stamenkovic
Hi all, I am trying to get some stored procedures performing after insertion of new records. The stored procedures generate unique number for records. That reason why I am using stored procedures is that the generation can only be done properly on the SQL level. The procedures themselves

Re: how to do a product->product-type->product-attributes with non pre-determined product-attributes?

2007-05-14 Thread Florijan Stamenkovic
Hi Johan, I am currently doing something similar. However, due to the amounts database rows that your kind of a solution would warrant in our situation, I have thought of a different approach. I will use your terminology (table names etc) to try to explain. It comes down to defining a Pro

Java Client future

2007-05-14 Thread Florijan Stamenkovic
Dear Apple people who are monitoring this list, PLEASE, be so kind to tell us what we can expect in regard to the WebObjects java client development. Please try to answer the following: 1. Will JavaClient runtime stuff still be a part of WebObjects? 2. Will Direct To Java Client still be a p

how to do a product->product-type->product-attributes with non pre-determined product-attributes?

2007-05-14 Thread Johan Henselmans
I am settting up a database in which we want to store information about products and their attributes. However, we do not know in advance what attributes will be part of the product, apart from a few (price, date-available etc). So I came up with the idea to use a separate table for product

Re: Merits of D2JC (was: user obstacles to WOLips adoption (was: Apple's Support of WebObjects))

2007-05-14 Thread Q
Groovy supports a form of rapid swing ui prototyping using their SwingBuilder interface. You could possibly use this as an alternative. There is also a GroovySWT library that works in a similar fashion. On 14/05/2007, at 4:25 PM, Andrus Adamchik wrote: On May 9, 2007, at 4:36 PM, David