jboss下如何order by?

AYellow AYellow 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
用JBuilder 8 + JBossOpenTool 2.5 开发CMP
据说JBoss支持order by,请问如何做?

听说要在jbosscmp-jdbc.xml写jboss-ql标签,不过那个文件是自动生成的,怎么做呢?

在ejb-jar.xml中直接使用order by的话出错


org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'select object(o) from Foo o order by o.col1'; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "order" at line 1, column 29.
Was expecting one of:

"," ...
)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.(JDBCEJBQLQuery.java:46)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:53)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:218)
...全文

相关推荐

iis与jboss整合

这是一个在windows操作系统下iis+jboss联合部署的说明文档,希望对大家能有所帮助

CloverLeaves

java面试考题(2015年)

java面试考题(2015年) 面试, java面试考题,面试考题,java面试考题(2015年)

daxiang253

Drools Jboss Rules 5.0 Developer's Guide

Drools Jboss Rules 5.0 Developer's Guide, This book guides you through various features of Drools, such as rules, ruleflows, decision tables, complex event processing, Drools Rete implementation with various optimizations, and others. It will help you to set up the Drools platform and start creating your own business. It's easy to start developing with Drools if you follow our real-world examples that are intended to make your life easier.

wyqihw

service-order:可以处理来自cel电话商店的服务订单的项目

服务订单 可以处理来自手机商店的服务订单的项目,该手机商店使用Java,JSF,CDI,Hibernate,Rest,EJB,Jboss和PostgreSQL进行生产,并使用I18N。 可用的语言是英语和葡萄牙语。 此外,我们还有另一个模块service-order-angular,该模块是唯一一个使用来自服务订单项目的其余服务的前端模块。 它是用Angular和bootstrap构建的,并使用一些工具作为bower和npm。 如何安装 你需要什么? Jboss Wildfly 8.1.0。最终版 PostgreSQL 9.4 JDK 1.8 玛文 节点JS 吉特 NPM 凉亭 首先,您必须配置您的环境,为此,您可以按照以下。 后端 您需要将数据库的正确用户名和密码设置为应用程序的默认值(用户名= postgres,密码= postgres),或在service-order-ds

iwbunny

ESB应用Message_Filters

ESB应用Message_Filters,有图片

tomsun2283
评论 15
收藏 已收藏
分享
返回顶部
AYellow
Java EE 67,535 成员 225,843 内容