daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. JpaRepository<TransactionEntity,Long>
  2. {
  3.     @Query(value = "select productid,name,dimensiontype,productcount,n" +
  4.             "producttotalsoldprice from transactionss inner join productentity n" +
  5.             "on productentity.id = transactionss.productidn" +
  6.             " where transactionss.create_date >= :startDate and transactionss.create_date <= :endDate",nativeQuery = true)
  7.     List<Object[]> reportForTable (@Param("starDate")Date startDate, @Param("endDate")Date endDate);
  8.  
  9. }
  10.      
  11. WARNING: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'orderServiceImpl': Unsatisfied dependency expressed through field 'transactionRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionRepository': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Using named parameters for method public abstract java.util.List uz.dukon.repository.TransactionRepository.reportForTable(java.util.Date,java.util.Date) but parameter 'Optional[starDate]' not found in annotated query 'select productid,name,dimensiontype,productcount,
  12. producttotalsoldprice from transactionss inner join productentity
  13. on productentity.id = transactionss.productid
  14.  where transactionss.create_date >= :startDate and transactionss.create_date <= :endDate'!
  15. фев 23, 2019 12:38:31 PM org.springframework.orm.jpa.AbstractEntityManagerFactoryBean destroy
  16. INFO: Closing JPA EntityManagerFactory for persistence unit 'default'
  17. Exception in thread "Thread-4" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'orderServiceImpl': Unsatisfied dependency expressed through field 'transactionRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionRepository': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Using named parameters for method public abstract java.util.List uz.dukon.repository.TransactionRepository.reportForTable(java.util.Date,java.util.Date) but parameter 'Optional[starDate]' not found in annotated query 'select productid,name,dimensiontype,productcount,
  18. producttotalsoldprice from transactionss inner join productentity
  19. on productentity.id = transactionss.productid
  20.  where transactionss.create_date >= :startDate and transactionss.create_date <= :endDate'!
  21.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:586)
  22.     at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:91)
  23.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:372)
  24.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1341)
  25.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:572)
  26.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top