Guest User

Untitled

a guest
Jan 13th, 2019
73
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Exception while initializing hibernate util..
  2. org.hibernate.AnnotationException: @OneToOne or @ManyToOne on Survey.Question.surveyID references an unknown entity: int
  3. at org.hibernate.cfg.ToOneFkSecondPass.doSecondPass(ToOneFkSecondPass.java:97)
  4. at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.processEndOfQueue(InFlightMetadataCollectorImpl.java:1815)
  5. at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.processFkSecondPassesInOrder(InFlightMetadataCollectorImpl.java:1759)
  6. at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.processSecondPasses(InFlightMetadataCollectorImpl.java:1646)
  7. at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:287)
  8. at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:84)
  9. at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:474)
  10. at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:85)
  11. at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:689)
  12. at Database.HibernateUtil.loadSessionFactory(HibernateUtil.java:38)
  13. at Database.HibernateUtil.<clinit>(HibernateUtil.java:20)
  14. at Database.UserDAO.main(UserDAO.java:118)
  15. Exception while getting session..
  16. java.lang.NullPointerException
  17. at Database.HibernateUtil.getSession(HibernateUtil.java:46)
  18. at Database.UserDAO.main(UserDAO.java:118)
  19. session is discovered null
  20. java.lang.NullPointerException
  21. at Database.UserDAO.main(UserDAO.java:119)
RAW Paste Data