Re: SQL
Re: SQL
- Subject: Re: SQL
- From: Henrique Gomes <email@hidden>
- Date: Fri, 13 Apr 2012 09:50:02 +0100
On Apr 13, 2012, at 9:19 AM, Ron X wrote:
> @Override
> public WOActionResults defaultAction() {
> NSArray<Chart> result = EOUtilities.rawRowsForSQL(session().defaultEditingContext(), Chart.ENTITY_NAME, "SELECT count(*), sum(size)");
>
> return pageWithName(Main.class);
> }
>
> ERROR 47.15 MB used/33.91 MB free [WorkerThread0] (ERD2WDirectAction.java:480) (Error) - Error with action default:com.webobjects.eoaccess.EOObjectNotAvailableException:
The second argument is the Model name, not the entity / table:
> databaseContextForModelNamed: cannot find model named Chart associated with this EOEditingContext, formValues:{}
and the sql must be a complete sentence; SELECT ... FROM table;
HG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >SQL (From: Ron X <email@hidden>) |
| >Re: SQL (From: David LeBer <email@hidden>) |
| >Re: SQL (From: Ron X <email@hidden>) |
| >Re: SQL (From: Ramsey Gurley <email@hidden>) |
| >Re: SQL (From: Ron X <email@hidden>) |
| >Re: SQL (From: John Huss <email@hidden>) |
| >Re: SQL (From: Ron X <email@hidden>) |