Re: SQL Generation Issue

2014-04-24 Thread David Avendasora
> Either that or I’m doing something fundamentally wrong. Place your bets! Okay all you people that bet on “SQL generation is busted” are out of luck! Shockingly *I* was doing something wrong. What? Nobody bet against it being my fault? Sigh. Anyway, here’s what I was doing “wrong”: We are us

Re: SQL Generation Issue

2014-04-24 Thread Chuck Hill
On 2014-04-24, 8:05 AM, "David Avendasora" wrote: Lack of good code hygiene beyond pretty formatting has now bit me. I should have had the following like a real developer: protected static ERXEnterpriseObjectCache cacheByPrimaryKey = null; protected static ERXEnterpriseObjectCache cacheByPrimar

Re: SQL Generation Issue

2014-04-24 Thread David Avendasora
On Apr 24, 2014, at 11:05 AM, David Avendasora wrote: > If ERXEnterpriseObjectCache breaks it, what else can? That was *supposed* to be rhetorical. But, well, guess what? I can tell you at least one other thing that breaks it: ERXFrameworkPrincipal.setUpFrameworkPrincipalClass(Class) Seri

Re: SQL Generation Issue

2014-04-24 Thread David Avendasora
This is now biting me. I have the following: public static ERXEnterpriseObjectCache cacheByPrimaryKey = new ERXEnterpriseObjectCache(Airport.ENTITY_NAME, "primaryKey", // Cache Key