[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4662) Implement javax.persistence.query.timeout

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu Dec 10 08:25:08 EST 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=34911#action_34911 ] 

Emmanuel Bernard commented on HHH-4662:
---------------------------------------

In particular, this can be propagated from a global property

Section 3.8.9
The following hint is defined by this specification for use in query configuration.
javax.persistence.query.timeout // time in milliseconds
This hint may be used with the Query or TypedQuery setHint method or the NamedQuery and NamedNativeQuery annotations. It may also be passed as a property to the Persistence.cre- ateEntityManagerFactory method and used in the properties element of the persis- tence.xml	file.	See	sections	3.8.1,	8.2.1.9,	9.6,	10.3.	When	used	in	the createEntityManagerFactory method, the persistence.xml file, and annotations, the timeout hint serves as a default value which can be selectively overridden by use in the Query.setHint method.

> Implement javax.persistence.query.timeout
> -----------------------------------------
>
>                 Key: HHH-4662
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4662
>             Project: Hibernate Core
>          Issue Type: Sub-task
>          Components: entity-manager
>            Reporter: Emmanuel Bernard
>


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

        


More information about the hibernate-issues mailing list