[jira] [Commented] (DELTASPIKE-687) Let users disable Query Method Expressions

2014-08-18 Thread Thomas Hug (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14100419#comment-14100419
 ] 

Thomas Hug commented on DELTASPIKE-687:
---

Never mind, found your message on the user list 
(http://mail-archives.apache.org/mod_mbox/deltaspike-users/201408.mbox/%3C53EFE6FF.2080104%40gmail.com%3E)

DS Data currently doesn't collect delegates, so the assumtion is that if it's 
not a @Query, not a concrete method and not a method expression, it's a 
delegate. It would be cleaner to actually collect all delegates during startup 
and then get to correct method type instead of disabling method expressions. 
Will give it a look.


 Let users disable Query Method Expressions
 --

 Key: DELTASPIKE-687
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-687
 Project: DeltaSpike
  Issue Type: Improvement
  Components: Data-Module
Affects Versions: 1.0.1
Reporter: Dominik Obermaier
Assignee: Thomas Hug

 While Query Method Expressions are very useful, it would be great to disable 
 this feature globally or on a per-method basis if this automatic 
 implementation is not desired.
 The following approaches could be worth investigating:
 - Disable the Query Method Expressions feature globally with the 
 apache-deltaspike.properties
 - Introduce a new annotation to mark methods for getting ignored by the Query 
 Method Expression Parser



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (DELTASPIKE-687) Let users disable Query Method Expressions

2014-08-18 Thread Thomas Hug (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14100481#comment-14100481
 ] 

Thomas Hug commented on DELTASPIKE-687:
---

You can also go the other way around and change the method expression prefix 
(see http://deltaspike.apache.org/data#method-prefix) instead of your delegate 
prefix. Although this might look weird too.

I was digging already into Data internals with my earlier description. It 
basically drills down to delegates not being recognized in all cases and the 
execution takes the method expression path instead of ending up in the 
delegate. So... Actually it's a bug :-) 

 Let users disable Query Method Expressions
 --

 Key: DELTASPIKE-687
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-687
 Project: DeltaSpike
  Issue Type: Improvement
  Components: Data-Module
Affects Versions: 1.0.1
Reporter: Dominik Obermaier
Assignee: Thomas Hug

 While Query Method Expressions are very useful, it would be great to disable 
 this feature globally or on a per-method basis if this automatic 
 implementation is not desired.
 The following approaches could be worth investigating:
 - Disable the Query Method Expressions feature globally with the 
 apache-deltaspike.properties
 - Introduce a new annotation to mark methods for getting ignored by the Query 
 Method Expression Parser



--
This message was sent by Atlassian JIRA
(v6.2#6252)