Re: Ignite-spring-data_2.0 not working
Hello! I don't recommend this since index can't be use in this case. Better introduce firstNameInUpper field. Regards, -- Ilya Kasnacheev пт, 8 нояб. 2019 г. в 18:32, Humphrey : > Thanks, is there a way to use IgnoreCase as well? > > IgnoreCase findByFirstnameIgnoreCase … where UPPER(x.firstame) > = UPPER(?1) > > > https://docs.spring.io/spring-data/jpa/docs/1.5.1.RELEASE/reference/html/jpa.repositories.html#jpa.query-methods.query-creation > > Or another way to do accomplish that with spring-data? > > Humphrey > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >
Re: Ignite-spring-data_2.0 not working
Thanks, is there a way to use IgnoreCase as well? IgnoreCase findByFirstnameIgnoreCase … where UPPER(x.firstame) = UPPER(?1) https://docs.spring.io/spring-data/jpa/docs/1.5.1.RELEASE/reference/html/jpa.repositories.html#jpa.query-methods.query-creation Or another way to do accomplish that with spring-data? Humphrey -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Ignite-spring-data_2.0 not working
Hello! Well, I guess that's how it is currently. Regards, -- Ilya Kasnacheev пт, 8 нояб. 2019 г. в 17:17, Humphrey : > Thanks, > > I've tried it with version 2.0.14 and it works, but version 2.1.0 it > doesn't. > > > org.springframework.data > spring-data-commons > 2.0.14.RELEASE > > > Humphrey > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >
Re: Ignite-spring-data_2.0 not working
Thanks, I've tried it with version 2.0.14 and it works, but version 2.1.0 it doesn't. org.springframework.data spring-data-commons 2.0.14.RELEASE Humphrey -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Ignite-spring-data_2.0 not working
Hello! Please try the following dependency: org.springframework.data spring-data-commons 2.0.9.RELEASE org.slf4j jcl-over-slf4j It seems that they have changed API in 2.2 (which you get by default) and we're not compatible with that. Regards, -- Ilya Kasnacheev сб, 2 нояб. 2019 г. в 20:50, Humphrey : > I see that some text went missing after the post: > > Here the stack trace log: > > Error starting ApplicationContext. To display the conditions report re-run > your application with 'debug' enabled. > 2019-11-02 13:16:56.482 ERROR 13627 --- [ main] > o.s.boot.SpringApplication : Application run failed > > org.springframework.beans.factory.BeanCreationException: Error creating > bean > with name 'personRepository': Invocation of init method failed; nested > exception is java.lang.IllegalStateException: You have defined query method > in the repository but you don't have any query lookup strategy defined. The > infrastructure apparently does not support query methods! > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1803) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:860) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878) > ~[spring-context-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) > ~[spring-context-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) > ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > > org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) > ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > org.springframework.boot.SpringApplication.run(SpringApplication.java:315) > ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) > ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) > ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > > org.bug.ignite.springdatabug.SpringDataBugApplication.main(SpringDataBugApplication.java:10) > ~[classes/:na] > Caused by: java.lang.IllegalStateException: You have defined query method > in > the repository but you don't have any query lookup strategy defined. The > infrastructure apparently does not support query methods! > at > > org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.(RepositoryFactorySupport.java:553) > ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > > org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:332) > ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > > org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda$afterPropertiesSet$5(RepositoryFactoryBeanSupport.java:297) > ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at org.springframework.data.util.Lazy.getNullable(Lazy.java:212) > ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at org.springframework.data.util.Lazy.get(Lazy.java:94) > ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > >
Re: Ignite-spring-data_2.0 not working
I see that some text went missing after the post: Here the stack trace log: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-11-02 13:16:56.482 ERROR 13627 --- [ main] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personRepository': Invocation of init method failed; nested exception is java.lang.IllegalStateException: You have defined query method in the repository but you don't have any query lookup strategy defined. The infrastructure apparently does not support query methods! at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1803) ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:860) ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878) ~[spring-context-5.2.0.RELEASE.jar:5.2.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.2.0.RELEASE.jar:5.2.0.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.bug.ignite.springdatabug.SpringDataBugApplication.main(SpringDataBugApplication.java:10) ~[classes/:na] Caused by: java.lang.IllegalStateException: You have defined query method in the repository but you don't have any query lookup strategy defined. The infrastructure apparently does not support query methods! at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.(RepositoryFactorySupport.java:553) ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:332) ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda$afterPropertiesSet$5(RepositoryFactoryBeanSupport.java:297) ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.data.util.Lazy.getNullable(Lazy.java:212) ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.data.util.Lazy.get(Lazy.java:94) ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:300) ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1862) ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1799) ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] ... 15 common frames omitted -- Sent from: