posted 10 years ago
I have a stock pojo. I need to insert it. I wrote a hibernateUtil file and main App file. Stock has stockId, StockCode and StockName. Initially it was throwing an exception stock id should be thrown manually.
As I entered manually, it is showing a fourth column Unknown column 'SERIALVERSIONUID' in 'field list'.
App.java
HibernateUtil.java
Stock.java
Stock.hbm.xml
hibernate.cfg.xml