[jira] [Updated] (DELTASPIKE-1222) Allow query by example method expression wtih @Query annotation
[ https://issues.apache.org/jira/browse/DELTASPIKE-1222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Andraschko updated DELTASPIKE-1222: -- Fix Version/s: (was: 1.9.2) > Allow query by example method expression wtih @Query annotation > --- > > Key: DELTASPIKE-1222 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1222 > Project: DeltaSpike > Issue Type: New Feature > Components: Data-Module >Reporter: Richard Juso >Priority: Major > Labels: features > > ability to either override findBy/findAll methods with @Query annotation > (without using params or using params, but also allowing the E example > pattern) or add support for custom method expression that could be used for > this purpose. the E example would only appy to the main Entity restrictions, > the additional params could apply to nested entities based on param index > ie. @Query(value = "select r from Range r where r.customId IN (select > e.customId from EbsUserStub e)") > public abstract List findBy(Range paramE, > SingularAttribute paramArrayOfSingularAttribute); > or > @Query(value = "select r from Range r where r.customId IN (select e.customId > from EbsUserStub e)") > public abstract List findUsing(Range paramE, > SingularAttribute paramArrayOfSingularAttribute); > or > @Query(value = "select r from Range r where r.customId IN (select e.customId > from EbsUserStub e where e.miscField = ?2)") > public abstract List findByMiscField(Range paramE, > SingularAttribute paramArrayOfSingularAttribute, String miscField); > method expression could either be custom ie. findUsing, findByEntityName, > findByMiscField or some other marker. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (DELTASPIKE-1222) Allow query by example method expression wtih @Query annotation
[ https://issues.apache.org/jira/browse/DELTASPIKE-1222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Andraschko updated DELTASPIKE-1222: -- Fix Version/s: (was: 1.9.1) 1.9.2 > Allow query by example method expression wtih @Query annotation > --- > > Key: DELTASPIKE-1222 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1222 > Project: DeltaSpike > Issue Type: New Feature > Components: Data-Module >Reporter: Richard Juso >Priority: Major > Labels: features > Fix For: 1.9.2 > > > ability to either override findBy/findAll methods with @Query annotation > (without using params or using params, but also allowing the E example > pattern) or add support for custom method expression that could be used for > this purpose. the E example would only appy to the main Entity restrictions, > the additional params could apply to nested entities based on param index > ie. @Query(value = "select r from Range r where r.customId IN (select > e.customId from EbsUserStub e)") > public abstract List findBy(Range paramE, > SingularAttribute paramArrayOfSingularAttribute); > or > @Query(value = "select r from Range r where r.customId IN (select e.customId > from EbsUserStub e)") > public abstract List findUsing(Range paramE, > SingularAttribute paramArrayOfSingularAttribute); > or > @Query(value = "select r from Range r where r.customId IN (select e.customId > from EbsUserStub e where e.miscField = ?2)") > public abstract List findByMiscField(Range paramE, > SingularAttribute paramArrayOfSingularAttribute, String miscField); > method expression could either be custom ie. findUsing, findByEntityName, > findByMiscField or some other marker. -- This message was sent by Atlassian JIRA (v7.6.14#76016)
[jira] [Updated] (DELTASPIKE-1222) Allow query by example method expression wtih @Query annotation
[ https://issues.apache.org/jira/browse/DELTASPIKE-1222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Struberg updated DELTASPIKE-1222: -- Fix Version/s: (was: 1.8.2) 1.9.1 > Allow query by example method expression wtih @Query annotation > --- > > Key: DELTASPIKE-1222 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1222 > Project: DeltaSpike > Issue Type: New Feature > Components: Data-Module >Reporter: Richard Juso >Priority: Major > Labels: features > Fix For: 1.9.1 > > > ability to either override findBy/findAll methods with @Query annotation > (without using params or using params, but also allowing the E example > pattern) or add support for custom method expression that could be used for > this purpose. the E example would only appy to the main Entity restrictions, > the additional params could apply to nested entities based on param index > ie. @Query(value = "select r from Range r where r.customId IN (select > e.customId from EbsUserStub e)") > public abstract List findBy(Range paramE, > SingularAttributeparamArrayOfSingularAttribute); > or > @Query(value = "select r from Range r where r.customId IN (select e.customId > from EbsUserStub e)") > public abstract List findUsing(Range paramE, > SingularAttribute paramArrayOfSingularAttribute); > or > @Query(value = "select r from Range r where r.customId IN (select e.customId > from EbsUserStub e where e.miscField = ?2)") > public abstract List findByMiscField(Range paramE, > SingularAttribute paramArrayOfSingularAttribute, String miscField); > method expression could either be custom ie. findUsing, findByEntityName, > findByMiscField or some other marker. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (DELTASPIKE-1222) Allow query by example method expression wtih @Query annotation
[ https://issues.apache.org/jira/browse/DELTASPIKE-1222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Struberg updated DELTASPIKE-1222: -- Fix Version/s: (was: 1.8.0) 1.8.1 > Allow query by example method expression wtih @Query annotation > --- > > Key: DELTASPIKE-1222 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1222 > Project: DeltaSpike > Issue Type: New Feature > Components: Data-Module >Reporter: Richard Juso > Labels: features > Fix For: 1.8.1, 2.0 > > > ability to either override findBy/findAll methods with @Query annotation > (without using params or using params, but also allowing the E example > pattern) or add support for custom method expression that could be used for > this purpose. the E example would only appy to the main Entity restrictions, > the additional params could apply to nested entities based on param index > ie. @Query(value = "select r from Range r where r.customId IN (select > e.customId from EbsUserStub e)") > public abstract List findBy(Range paramE, > SingularAttributeparamArrayOfSingularAttribute); > or > @Query(value = "select r from Range r where r.customId IN (select e.customId > from EbsUserStub e)") > public abstract List findUsing(Range paramE, > SingularAttribute paramArrayOfSingularAttribute); > or > @Query(value = "select r from Range r where r.customId IN (select e.customId > from EbsUserStub e where e.miscField = ?2)") > public abstract List findByMiscField(Range paramE, > SingularAttribute paramArrayOfSingularAttribute, String miscField); > method expression could either be custom ie. findUsing, findByEntityName, > findByMiscField or some other marker. -- This message was sent by Atlassian JIRA (v6.3.15#6346)