Javafree
 Forum   Topics   Author   Post 
Frameworks, APIs e IDE's Erro ao Gerar Tabelas com Hibernate JulioBarros INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect Falha ao tentar criar o SessionFactoryjava.lang.NoSuchMethodError: javax.persistence.Table.indexes()[Ljavax/persistence/Index; Exception in thread "main" java.lang.ExceptionInInitializerError at br.com.maissaude.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:29) at br.com.maissaude.util.HibernateUtil.<clinit>(HibernateUtil.java:10) at br.com.maissaude.main.GeraTabela.main(GeraTabela.java:9) Caused by: java.lang.NoSuchMethodError: javax.persistence.Table.indexes()[Ljavax/persistence/Index; at org.hibernate.cfg.annotations.EntityBinder.processComplementaryTableDefinitions(EntityBinder.java:973) at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:824) at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3845) at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3799) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1412) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1846) at br.com.maissaude.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:21) ... 2 more
Frameworks, APIs e IDE's Erro ao Gerar Tabelas com Hibernate JulioBarros Estou com o seguinte erro ao gerar as tabelas da minha base com Hibernate: INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect Falha ao tentar criar o SessionFactoryjava.lang.NoSuchMethodError: javax.persistence.Table.indexes()[Ljavax/persistence/Index; Exception in thread "main" java.lang.ExceptionInInitializerError at br.com.maissaude.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:29) at br.com.maissaude.util.HibernateUtil.<clinit>(HibernateUtil.java:10) at br.com.maissaude.main.GeraTabela.main(GeraTabela.java:9) Caused by: java.lang.NoSuchMethodError: javax.persistence.Table.indexes()[Ljavax/persistence/Index; at org.hibernate.cfg.annotations.EntityBinder.processComplementaryTableDefinitions(EntityBinder.java:973) at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:824) at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3845) at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3799) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1412) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1846) at br.com.maissaude.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:21) ... 2 more
Goto page 1