Advertisement
Guest User

Untitled

a guest
Aug 27th, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. Caused by: org.hibernate.HibernateException: Errors in named queries: FindAllCompanyFileTypes
  2. at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:426)
  3. at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872)
  4. at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:906)
  5. ... 70 more
  6.  
  7. java.lang.IllegalArgumentException: No positional parameters in query: SELECT equipment.*, det.*
  8. FROM tdetectable_equipment equipment JOIN
  9. tdetectable det
  10. ON det.id = equipment.id_detectable
  11. WHERE
  12. equipment.id_detectable=det.id and det.active=1 and
  13. equipment.id_container = _Id
  14.  
  15. <property name="show_sql">true</property>
  16.  
  17. @Entity
  18. @Table
  19. @NamedQueries({@NamedQuery(name="MyEntity.myQuery" query="select blah blah blah")})
  20. public class MyEntity
  21. {
  22. ...
  23. }
  24.  
  25. @Entity
  26. @Table
  27. public class MyEntity
  28. {
  29. ...
  30. }
  31.  
  32. public interface MyEntityDao
  33. extends JpaRepository...
  34. {
  35. @Query("select blah blah blah")
  36. MyEntity findByMyQuery();
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement