Re: Return type of Repository native query

2015-08-07 Thread Daniel Cunha
Very nice!!! :D On Fri, Aug 7, 2015 at 5:45 PM, Thomas Hug thomas@gmail.com wrote: Hi Daniel Thnx yes I can take this one. It's about time I show up in Git history again :-) On Fri, Aug 7, 2015 at 6:19 PM, Daniel Cunha daniels...@gmail.com wrote: Thomas, if you don't have time to

[jira] [Updated] (DELTASPIKE-976) document handling of @PersistenceUnitName EntityManagerFactory

2015-08-07 Thread Gerhard Petracek (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerhard Petracek updated DELTASPIKE-976: Assignee: Daniel Cunha (soro) (was: Thomas Andraschko) document handling of

Re: Return type of Repository native query

2015-08-07 Thread akm
Thanks Thomas for the response. It works with the workaround. Any idea if the bug will be fixed? Thanks -- View this message in context: http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/Return-type-of-Repository-native-query-tp4661333p4661337.html Sent from the Apache

Re: Return type of Repository native query

2015-08-07 Thread Daniel Cunha
Thomas, if you don't have time to see it, I can doing on next week. Let me know if you have time to fix it On Fri, Aug 7, 2015 at 1:07 PM, akm ameh...@ford.com wrote: Thanks Thomas for the response. It works with the workaround. Any idea if the bug will be fixed? Thanks -- View

[jira] [Created] (DELTASPIKE-978) Native Query does not return a correct result type of entity but returns an object which causes ClassCastException

2015-08-07 Thread Amita Mehta (JIRA)
Amita Mehta created DELTASPIKE-978: -- Summary: Native Query does not return a correct result type of entity but returns an object which causes ClassCastException Key: DELTASPIKE-978 URL:

Re: Return type of Repository native query

2015-08-07 Thread akm
I don't seem to have access to open an issue -- View this message in context: http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/Return-type-of-Repository-native-query-tp4661333p4661340.html Sent from the Apache DeltaSpike Incubator Discussions mailing list archive at

Re: Return type of Repository native query

2015-08-07 Thread Gerhard Petracek
hi akm, everybody can access it after creating an account (see [1]). regards, gerhard [1] http://s.apache.org/Gnz 2015-08-07 18:40 GMT+02:00 akm ameh...@ford.com: I don't seem to have access to open an issue -- View this message in context:

[jira] [Updated] (DELTASPIKE-978) Native Query does not return a correct result type of entity but returns an object which causes ClassCastException

2015-08-07 Thread Gerhard Petracek (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerhard Petracek updated DELTASPIKE-978: Assignee: Daniel Cunha (soro) Native Query does not return a correct result

[jira] [Updated] (DELTASPIKE-978) Native Query does not return a correct result type of entity but returns an object which causes ClassCastException

2015-08-07 Thread Gerhard Petracek (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerhard Petracek updated DELTASPIKE-978: Affects Version/s: 1.5.0 Native Query does not return a correct result type of

[jira] [Updated] (DELTASPIKE-978) Native Query does not return a correct result type of entity but returns an object which causes ClassCastException

2015-08-07 Thread Gerhard Petracek (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerhard Petracek updated DELTASPIKE-978: Fix Version/s: 1.5.1 Native Query does not return a correct result type of

[jira] [Updated] (DELTASPIKE-978) Native Query does not return a correct result type of entity but returns an object which causes ClassCastException

2015-08-07 Thread Gerhard Petracek (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerhard Petracek updated DELTASPIKE-978: Component/s: Data-Module Native Query does not return a correct result type of

[jira] [Updated] (DELTASPIKE-978) Native Query does not return a correct result type of entity but returns an object which causes ClassCastException

2015-08-07 Thread Gerhard Petracek (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerhard Petracek updated DELTASPIKE-978: Description: details:

[jira] [Updated] (DELTASPIKE-978) Native Query does not return a correct result type of entity but returns an object which causes ClassCastException

2015-08-07 Thread Gerhard Petracek (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerhard Petracek updated DELTASPIKE-978: Priority: Minor (was: Major) Native Query does not return a correct result

[jira] [Updated] (DELTASPIKE-978) ClassCastException with Native Queries

2015-08-07 Thread Gerhard Petracek (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerhard Petracek updated DELTASPIKE-978: Summary: ClassCastException with Native Queries (was: Native Query does not

[jira] [Updated] (DELTASPIKE-978) Native Query does not return a correct result type of entity but returns an object which causes ClassCastException

2015-08-07 Thread Gerhard Petracek (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerhard Petracek updated DELTASPIKE-978: Description: Native Query does not return a correct result type of entity but

Re: Return type of Repository native query

2015-08-07 Thread Thomas Hug
Hi Daniel Thnx yes I can take this one. It's about time I show up in Git history again :-) On Fri, Aug 7, 2015 at 6:19 PM, Daniel Cunha daniels...@gmail.com wrote: Thomas, if you don't have time to see it, I can doing on next week. Let me know if you have time to fix it On Fri, Aug 7,

Re: Return type of Repository native query

2015-08-07 Thread Thomas Hug
Hi akm Given it is stated like that in the documentation, I guess we have a bug here. The code doesn't call the EM with a result class so there's no mapping happening. As a workaround, you might specify a @NamedNativeQuery where you can add a result class and then reference it in the @Query