Error :Hibernate , MySQL

D

Duke

I am using Hibernate, Mysql to create Hello World Application
(Message)
i am getting a error message
log4j:WARN No appenders could be found for logger
(org.hibernate.cfg.annotations.Version).
log4j:WARN Please initialize the log4j system properly.
javax.persistence.PersistenceException:
org.hibernate.exception.SQLGrammarException: could not insert:
[Hello.Message]
did i have to give special permision to the database create in the
mysql to create tabel via Hibernate.

Thank
Duke
 
A

Arne Vajhøj

Duke said:
I am using Hibernate, Mysql to create Hello World Application
(Message)
i am getting a error message
log4j:WARN No appenders could be found for logger
(org.hibernate.cfg.annotations.Version).
log4j:WARN Please initialize the log4j system properly.
javax.persistence.PersistenceException:
org.hibernate.exception.SQLGrammarException: could not insert:
[Hello.Message]
did i have to give special permision to the database create in the
mysql to create tabel via Hibernate.

The error indicates an SQL syntax error not a permission problem.

Configure log4j to output from hibernate and configure
hibernate to log SQL statements, then I am sure that you
will be able to track the bug.

Arne
 
J

Jan Thomä

Duke said:
I am using Hibernate, Mysql to create Hello World Application
(Message)
i am getting a error message
log4j:WARN No appenders could be found for logger
(org.hibernate.cfg.annotations.Version).
log4j:WARN Please initialize the log4j system properly.
javax.persistence.PersistenceException:
org.hibernate.exception.SQLGrammarException: could not insert:
[Hello.Message]

The error indicates an SQL syntax error not a permission problem.

Configure log4j to output from hibernate and configure
hibernate to log SQL statements, then I am sure that you
will be able to track the bug.

Adding some source code would also help finding out the problem...

Jan
 
A

Arne Vajhøj

Jan said:
Duke said:
I am using Hibernate, Mysql to create Hello World Application
(Message)
i am getting a error message
log4j:WARN No appenders could be found for logger
(org.hibernate.cfg.annotations.Version).
log4j:WARN Please initialize the log4j system properly.
javax.persistence.PersistenceException:
org.hibernate.exception.SQLGrammarException: could not insert:
[Hello.Message]
The error indicates an SQL syntax error not a permission problem.

Configure log4j to output from hibernate and configure
hibernate to log SQL statements, then I am sure that you
will be able to track the bug.

Adding some source code would also help finding out the problem...

Maybe.

But I am not familiar enough with Hibernate to manual translate
Java code to the SQL generated by Hibernate.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top