Skip to main content

[jpa-spec issues] [JIRA] Commented: (JPA_SPEC-50) @QuerySingleResult

  • From: "ldemichiel (JIRA)" < >
  • To:
  • Subject: [jpa-spec issues] [JIRA] Commented: (JPA_SPEC-50) @QuerySingleResult
  • Date: Fri, 5 Apr 2013 00:14:53 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


    [ 
http://java.net/jira/browse/JPA_SPEC-50?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=360481#action_360481
 ] 

ldemichiel commented on JPA_SPEC-50:
------------------------------------

It seems more flexible to me to do this with a producer method.

> @QuerySingleResult
> ------------------
>
>                 Key: JPA_SPEC-50
>                 URL: http://java.net/jira/browse/JPA_SPEC-50
>             Project: jpa-spec
>          Issue Type: Sub-task
>            Reporter: mkarg
>
> New annotation "@QuerySingleResult(ejbql = "JPAQL QUERY" | namedQuery = 
> "name of query")" should inject the .getSingleResult() output of either a 
> given JPAQL query or of a named query into a field annotated with this 
> annotation.
> This is often needed in business applications, for example if the written 
> data is dependend of a aggregate other entities. This is what a trigger 
> would do in databases.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[jpa-spec issues] [JIRA] Commented: (JPA_SPEC-50) @QuerySingleResult

ldemichiel (JIRA) 04/05/2013

<Possible follow-up(s)>

[jpa-spec issues] [JIRA] Commented: (JPA_SPEC-50) @QuerySingleResult

mkarg (JIRA) 04/05/2013
 
 
Close
loading
Please Confirm
Close