Re: How to use dates

2011-05-13 Thread Chuck Hill
Hi Daniel, If you just want the date, and not the time, then JodaTime is probably better for you to use. Search the list archives for details. The problem with Java timestamps is that they are very accurate and include things like Daylight Saving time and historical changes in time. This is g

How to use dates

2011-05-13 Thread Daniel Mejia
Hi there, I need help with a problem with the Date type. The problem happens when I type de date 1920-dec-31in a field defined as date in a edit page of Modern D2W application. After saving the page the date is displayed as 1920-dec-30. The same happens for all the years before 1921, but for y

Re: More Readable EOQualifiers

2011-05-13 Thread Ramsey Gurley
On May 13, 2011, at 1:09 PM, David Avendasora wrote: > > On May 13, 2011, at 2:49 PM, John Huss wrote: > >> On Fri, May 13, 2011 at 1:38 PM, David Avendasora >> wrote: My new strategy combines still doing some setup, but the setup is explicitly for making things easier to read. >>>

Re: More Readable EOQualifiers

2011-05-13 Thread Chuck Hill
Not to poke holes but... On May 13, 2011, at 9:21 AM, David Avendasora wrote: > > EOQualifier haveRedHair = Student.HAIR_COLOR.eq(MyAppConstants.RED_HAIR); Why is that an EOQualifier? public ERXKeyValueQualifier eq(T value) { return ERXQ.equals(_key, value); } a

Re: More Readable EOQualifiers

2011-05-13 Thread David Avendasora
On May 13, 2011, at 2:49 PM, John Huss wrote: > On Fri, May 13, 2011 at 1:38 PM, David Avendasora > wrote: >>> My new strategy combines still doing some setup, but the setup is >>> explicitly for making things easier to read. >>> >>> EOQualifier haveRedHair = Student.HAIR_COLOR.eq(MyAppConsta

Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship

2011-05-13 Thread David Avendasora
On May 13, 2011, at 3:21 PM, Tim Worman wrote: > On May 13, 2011, at 7:09 AM, David Avendasora wrote: > >> >> On May 13, 2011, at 4:39 AM, naneon.raym...@neuf.fr wrote: >> >>> I always stay in the corner because I know I need advice on WO >> >> Don't stay in the corner! :-) >> >> This is th

Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship

2011-05-13 Thread Tim Worman
On May 13, 2011, at 7:09 AM, David Avendasora wrote: > > On May 13, 2011, at 4:39 AM, naneon.raym...@neuf.fr wrote: > >> I always stay in the corner because I know I need advice on WO > > Don't stay in the corner! :-) > > This is the place for help with WebObjects. Everyone here remembers wha

Re: More Readable EOQualifiers

2011-05-13 Thread John Huss
On Fri, May 13, 2011 at 1:38 PM, David Avendasora wrote: > My new strategy combines still doing some setup, but the setup is > explicitly for making things easier to read. > > EOQualifier haveRedHair = Student.HAIR_COLOR.eq(MyAppConstants.RED_HAIR); > EOQualifier areActive = Student.IS_ACTIVE.isT

Re: More Readable EOQualifiers

2011-05-13 Thread David Avendasora
On May 13, 2011, at 1:33 PM, Chuck Hill wrote: > Hi A David, > > > On May 13, 2011, at 9:21 AM, David Avendasora wrote: > >> Hi all, >> >> I've been doing a lot of work with EOQualifiers in the past few months, > > Congratulations, that must feel very satisfying! Oddly, you know, it does.

Re: More Readable EOQualifiers

2011-05-13 Thread David Avendasora
On May 13, 2011, at 12:32 PM, Ramsey Gurley wrote: > > On May 13, 2011, at 9:21 AM, David Avendasora wrote: > >> Hi all, >> >> I've been doing a lot of work with EOQualifiers in the past few months, and >> while the new ERXKey-based, chainable qualifiers are a huge leap ahead of >> the stand

Re: More Readable EOQualifiers

2011-05-13 Thread Chuck Hill
Hi A David, On May 13, 2011, at 9:21 AM, David Avendasora wrote: > Hi all, > > I've been doing a lot of work with EOQualifiers in the past few months, Congratulations, that must feel very satisfying! > and while the new ERXKey-based, chainable qualifiers are a huge leap ahead of > the stand

Re: Making code available & license (was Re: Examles from apple webobjects 5.4.3 any good)

2011-05-13 Thread Dov Rosenberg
Apache is the most friendly and modern license Dov From: Klaus Berkling mailto:kberkl...@dyned.com>> Date: Fri, 13 May 2011 10:28:39 -0700 To: WebObjects Development mailto:webobjects-dev@lists.apple.com>> Subject: Re: Making code available & license (was Re: Examles from apple webobjects 5.4.3

Re: Making code available & license (was Re: Examles from apple webobjects 5.4.3 any good)

2011-05-13 Thread Klaus Berkling
Thanks everyone for your comments. I'm leaning towards Apache but need to think about it some more. kib "Success is not final, failure is not fatal: it is the courage to continue that counts." Winston Churchill Klaus Berkling Web Application Dev. & Systems Analyst DynEd International, Inc. www

Re: qualifier to check for empty toMany

2011-05-13 Thread John Huss
Yeah, that's true, me too. I actually have used the Houdah one more - it's called ExistsInRelationshipQualifier If you're not up for fixing Wonder's, you could try that one. John On Fri, May 13, 2011 at 12:08 PM, Chuck Hill wrote: > On May 12, 2011, at 11:49 AM, Alexis Tual wrote: > > Le 12

Re: EOQualifier Filtered Array - unexpected results

2011-05-13 Thread Chuck Hill
There is only one object per EO per editing context. The arrays below only contain references to that one, true EO. They don't contain the actual EO and EOQualifier.filteredArrayWithQualifier is not copying EOs, it is copying references (i.e. pointers). Chuck On May 13, 2011, at 2:40 AM, Ne

Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship

2011-05-13 Thread Chuck Hill
On May 13, 2011, at 1:39 AM, naneon.raym...@neuf.fr wrote: > Hi, > > My problem is solved thanks to your advice and examples. attached the code: > > > EOQualifier qualMailType = > EOQualifier.qualifierWithQualifierFormat( > "indEmails.emailTypec=%

Re: qualifier to check for empty toMany

2011-05-13 Thread Chuck Hill
On May 12, 2011, at 11:49 AM, Alexis Tual wrote: > Le 12 mai 2011 à 19:33, Fred Wells a écrit : > >> Almost but the SQL that get generated isn't right, any one know a way around >> this error? >> >> EvaluateExpression failed: >> > DISTINCT t0.actualEndDate, t0.actualStartDate, t0.approvalOutput

Problem with OGNL when using JProfiler

2011-05-13 Thread Dominique Schoenenberger
I'm trying to use JProfiler 5.1.4 with my WO application. I added the support in Eclipse (I said I have eclipse 3.4 but in fact I have Eclipse 3.6.2) I added the WOLips JProfiler Launcher plugin in Eclipse. The only way working for me is to launch the application like this: right click the Appl

Re: More Readable EOQualifiers

2011-05-13 Thread Ramsey Gurley
On May 13, 2011, at 9:21 AM, David Avendasora wrote: > Hi all, > > I've been doing a lot of work with EOQualifiers in the past few months, and > while the new ERXKey-based, chainable qualifiers are a huge leap ahead of the > standard EOQualifiers in terms of readability and clarity, they have

Re: More Readable EOQualifiers

2011-05-13 Thread Jesse Tayler
first we have a method called "dot()" and now we have "that()" personally, I've decided to code all my queries as a standard Jeopardy question. On May 13, 2011, at 12:21 PM, David Avendasora wrote: > Hi all, > > I've been doing a lot of work with EOQualifiers in the past few months, and > w

More Readable EOQualifiers

2011-05-13 Thread David Avendasora
Hi all, I've been doing a lot of work with EOQualifiers in the past few months, and while the new ERXKey-based, chainable qualifiers are a huge leap ahead of the standard EOQualifiers in terms of readability and clarity, they have always seemed just short of ideal. I believe I've come up with a

Re: EOQualifier Filtered Array - unexpected results

2011-05-13 Thread Ramsey Gurley
It sounds like you're marking the tickets as 'selected' on the ticket object. If that is the case, the array's hold a pointer to the original object and that information is shared between them all. Ramsey On May 13, 2011, at 2:40 AM, Neil MacLennan wrote: > public NSArray tickets; > public NSA

WOWODC 2011 Schedule

2011-05-13 Thread Pascal Robert
Hello everyone, For those who want to see the WOWODC 2011 schedule to book their hotel and flight, you can get it from a iCalendar file: http://wocommunity.org/wowodc11/WOWODC11-Schedule.ics About early-bird pricing, it ends on May 16 at 11:30pm (EST), so you still have 4 days to get up to $

Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship

2011-05-13 Thread David Avendasora
On May 13, 2011, at 4:39 AM, naneon.raym...@neuf.fr wrote: > I always stay in the corner because I know I need advice on WO Don't stay in the corner! :-) This is the place for help with WebObjects. Everyone here remembers what it's like to be new to WO and trying to figure out the fundamental

Re: qualifier to check for empty toMany

2011-05-13 Thread Alexis Tual
There's a simple way if you have a A ->> B, to fetch all the A's having no B's : EOQualifier qual = ERXQ.isNull(A.TO_BS_KEY + "." + B.ID_KEY); Beware, the to-many relationship must be of type "Left Outer" in your model Hope it helps. Alex Le 11 mai 2011 à 23:29, Fred Wells a écrit : > Hey all

EOQualifier Filtered Array - unexpected results

2011-05-13 Thread Neil MacLennan
public NSArray tickets; public NSArray tickets_weekend; public NSArray tickets_day; public NSArray tickets_evening; tickets = Product.fetchAllTicketProducts(ec); EOKeyValueQualifier qual1 = new EOKeyValueQualifier(Product.CATEGORY_KEY, EOQualifier.QualifierOperatorEqual, "WEEKEND

Re: Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship

2011-05-13 Thread naneon . raymond
Hi, My problem is solved thanks to your advice and examples. attached the code: EOQualifier qualMailType = EOQualifier.qualifierWithQualifierFormat( "indEmails.emailTypec=%@", argsEtu); EOQualifier admQ = new EOKeyValueQualifi