Weblogic Server.在JBuilder里建立一个实体Bean的一个Finder出现的问题,大家帮我看看怎么回事
make的时候出现的问题
"CmpModule.jar": [EJB:011017]Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was:
"CmpModule.jar":
"CmpModule.jar": Query:
"CmpModule.jar": EJB Name: SysUser
"CmpModule.jar": Method Name: findByName
"CmpModule.jar": Parameter Types: (java.lang.String)
"CmpModule.jar": select =>> userName <<= From SysUser as t where =>> t.userName <<= = ?1
"CmpModule.jar": EJB QL compilation encountered error: [EJB:013060]
"CmpModule.jar": Problem, in EJB QL in the clause SELECT userName, 'userName' was expected to be a single_valued_path_expression. The single_valued_path_expression must consist of at least 2 elements separated by periods. 'userName' contains only one element.
"CmpModule.jar": Action, rewrite the SELECT clause of the query. See EJB2.0 Specification for more details.
"CmpModule.jar": EJB QL compilation encountered error: [EJB:013042]The Identifier 'userName' is neither a cmp-field nor a cmr-field. Re-examine your query.
"CmpModule.jar": .