| View previous topic :: View next topic |
| Author |
Message |
microshot
Joined: 16 Aug 2006 Posts: 35
|
Posted: Thu Aug 24, 2006 2:11 am Post subject: outer or full join must be followed by path expression |
|
|
I define the function:
| Code: | public IList SelectLine(int lineid)
{
SimpleQuery query = new SimpleQuery(typeof(MBUSTIMEPLANSURVEY),typeof(System.Decimal),
@"select a.AUTOID from MBUSTIMEPLANSURVEY a inner join TDUTYTYPE b on a.AUTOID=b.AUTOID where a.LINEID=?",
lineid);
return (IList)ExecuteQuery(query);
} |
error:
"outer or full join must be followed by path expression [select a.AUTOID from ZtDimsModel.MBUSTIMEPLANSURVEY a inner join TDUTYTYPE b on a.AUTOID=b.AUTOID where a.LINEID=?]"
the hql error?
If I need sql:
select a.AUTOID,b.busid from MBUSTIMEPLANSURVEY a inner join TDUTYTYPE b on a.AUTOID=b.AUTOID where a.LINEID=?
How can I write the function?
| Code: | | SimpleQuery query = new SimpleQuery(typeof(???),typeof(???)............ |
_________________ I'm come from China, more and more Chinese becoming use your project into the development:) |
|
| Back to top |
|
 |
fabio Castle Team

Joined: 22 Apr 2006 Posts: 118 Location: Porto Alegre, RS / Brasil
|
|
| Back to top |
|
 |
microshot
Joined: 16 Aug 2006 Posts: 35
|
Posted: Thu Aug 24, 2006 4:36 am Post subject: |
|
|
o, I know
thank you! _________________ I'm come from China, more and more Chinese becoming use your project into the development:) |
|
| Back to top |
|
 |
fabio Castle Team

Joined: 22 Apr 2006 Posts: 118 Location: Porto Alegre, RS / Brasil
|
|
| Back to top |
|
 |
|