Details
-
Type:
Bug
-
Status:
Awaiting Feedback
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
@NamedNativeQueries is a useful thing, but I have found some problems during my using.
1、Normal
/**
* @NamedNativeQueries({
* @NamedNativeQuery(
* name = "fetchMultipleJoinsEntityResults",
* resultSetMapping= "mappingMultipleJoinsEntityResults",
* query = "SELECT * FROM test "
* )
* })
*/
2、Error,cannot connect to the server
/**
* @NamedNativeQueries({
* @NamedNativeQuery(
* name = "fetchMultipleJoinsEntityResults",
* resultSetMapping= "mappingMultipleJoinsEntityResults",
* query = "SELECT *
FROM test "
* )
* })
*/
3、Cannot use alias.The same problem as the second one.
.......
query = "SELECT a as test FROM test "
Activity
Fabio B. Silva
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
@NamedNativeQueries is a useful thing, but I have found some problems during my using.
1、Normal * @NamedNativeQueries({ * @NamedNativeQuery( * name = "fetchMultipleJoinsEntityResults", * resultSetMapping= "mappingMultipleJoinsEntityResults", * query = "SELECT * FROM test " * ) * }) 2、Error,cannot connect to the server * @NamedNativeQueries({ * @NamedNativeQuery( * name = "fetchMultipleJoinsEntityResults", * resultSetMapping= "mappingMultipleJoinsEntityResults", * query = "SELECT * FROM test " * ) * }) 3、Cannot use alias.The same problem as the second one. ....... query = "SELECT a as test FROM test " |
@NamedNativeQueries is a useful thing, but I have found some problems during my using.
1、Normal {code} /** * @NamedNativeQueries({ * @NamedNativeQuery( * name = "fetchMultipleJoinsEntityResults", * resultSetMapping= "mappingMultipleJoinsEntityResults", * query = "SELECT * FROM test " * ) * }) */ {code} 2、Error,cannot connect to the server {code} /** * @NamedNativeQueries({ * @NamedNativeQuery( * name = "fetchMultipleJoinsEntityResults", * resultSetMapping= "mappingMultipleJoinsEntityResults", * query = "SELECT * FROM test " * ) * }) */ {code} 3、Cannot use alias.The same problem as the second one. {code} ....... query = "SELECT a as test FROM test " {code} |
Fabio B. Silva
made changes -
| Attachment | DDC2193Test.php [ 11363 ] |
Fabio B. Silva
made changes -
| Status | Open [ 1 ] | Awaiting Feedback [ 10000 ] |