Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Application Server » JBoss  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 JBOSS 的 QL 中的 ORDER BY 怎么用?
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2004-09-21 14:15 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
报错!
[ObjectName: jboss.j2ee:jndiName=Testa,service=EJB
state: FAILED
I Depend On:
Depends On Me: org.jboss.deployment.DeploymentException: Error compiling EJB-QL
statement 'select Object(o) from Testa o ORDER BY o.c'; - nested throwable: (o
rg.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "ORDER" at line 1, co
lumn 32.
Was expecting one of:
<EOF>
"," ...
)]



"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:JBOSS 的 QL 中的 ORDER BY 怎么用? [Re:jameszhang]
ringayumi





发贴: 155
积分: 10
于 2004-09-21 17:24 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
QL is not supported the "Order By" now!!

May be the EJB3.0 include it.



作者 Re:JBOSS 的 QL 中的 ORDER BY 怎么用? [Re:ringayumi]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2004-09-22 08:40 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
ringayumi wrote:
QL is not supported the "Order By" now!!

May be the EJB3.0 include it.

怪了,呵呵,不知道你是用的什么规范

下面引自<<Sun Microsystems
Enterprise JavaBeansTM Specification,
Version 2.1>>

11.2 EJB QL Definition
EJB QL uses a SQL-like syntax to select objects or values based on the abstract schema types and relationships
of entity beans. The path expressions of EJB QL allow the Bean Provider to navigate over
relationships defined by the cmr-fields of the abstract schema types of entity beans.
This chapter provides the full definition of the language.
An EJB QL query is a string which consists of the following clauses:
• a SELECT clause, which determines the type of the objects or values to be selected.
• a FROM clause, which provides declarations that designate the domain to which the expressions
specified in the SELECT clause and WHERE clause of the query apply.
• an optional WHERE clause, which may be used to restrict the results that are returned by the
query.
• an optional ORDER BY clause, which may be used to order the results that are returned by the
query.



"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:JBOSS 的 QL 中的 ORDER BY 怎么用? [Re:jameszhang]
ringayumi





发贴: 155
积分: 10
于 2004-09-22 08:45 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
jameszhang wrote:
怪了,呵呵,不知道你是用的什么规范

下面引自<<Sun Microsystems
Enterprise JavaBeansTM Specification,
Version 2.1>>



haha.........Embaressed I'm sorry~~!

I miss the EJB2.1 ~~~~^_^

Don't mention it~~!

Do you use the JBoss 4.0 version?

I haven't to try it yet!Big Smile


ringayumi edited on 2004-09-22 08:47

作者 Re:JBOSS 的 QL 中的 ORDER BY 怎么用? [Re:jameszhang]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2004-09-22 09:00 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我用的是3.2.3带TOMCAT,但是4.0好象没有Sad


"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:JBOSS 的 QL 中的 ORDER BY 怎么用? [Re:jameszhang]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2004-09-22 10:11 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
问题解决Big Smile


"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:JBOSS 的 QL 中的 ORDER BY 怎么用? [Re:jameszhang]
ringayumi





发贴: 155
积分: 10
于 2004-09-22 11:09 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Are you use the JBoss 4.0 version to solve that?


作者 Re:JBOSS 的 QL 中的 ORDER BY 怎么用? [Re:ringayumi]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2004-09-22 19:23 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
ringayumi wrote:
Are you use the JBoss 4.0 version to solve that?

JBoss 3.2.3 version to solve that



"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"


flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923