playframework/play — pull request #541 by bubblecrisis (2012-09-15 07:46:27+00:00)
Title: [#1600] Allows non-transaction JPA read-only query

Adding new annotation option

@NoTransaction(readOnly=true)

allows JPA to make query having to explicitly start a transaction at the Controller level, improving performance and scalability.

All existing annotations will behave the same. Defaults readOnly to false so to not regress existing codes.

https://groups.google.com/forum/?fromgroups=#!topic/play-framework/OaQayMak9mU