Skip to content
Advertisement

org.hibernate.exception.SQLGrammarException: could not insert

Hi i am trying to insert new row in table using hibernate with bean class i am getting exception

JavaScript

i am using below mentioned code:

JavaScript

hbm file:

JavaScript

Action class:

JavaScript

Dao class

JavaScript

Execption

JavaScript

Caused by:

JavaScript

where I’m wrong in this code?

Advertisement

Answer

Mapping database column types to Java types performed by Hibernate mapping configuration that uses Java types.

JavaScript

The missing </property> is added.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement