Hi. I'm a hibernate beginner so sorry for tedious questions.
I tried web tutorial from hibernate reference (1.1. Part 1 -...) and it gave me some error logging.
This is what it complains about, even though expected database entries were made (when calling main() method from EventManager):
Code:
1155 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaExport - Unsuccessful: create table EVENTS (EVENT_ID bigint generated by default as identity (start with 1), EVENT_DATE timestamp, EVENT_TITLE varchar(255), primary key (EVENT_ID))
1155 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaExport - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'generated by default as identity (start with 1), EVENT_DATE timestamp, EVENT_TIT' at line 1
1155 [main] INFO org.hibernate.tool.hbm2ddl.SchemaExport - schema export complete
Hibernate: insert into EVENTS (EVENT_ID, EVENT_DATE, EVENT_TITLE) values (null, ?, ?)
1. It hibernate generates a query for creating tables which as I can see is incorrect.
2. It tries to proceed with INSERT query, which is also said to be incorrect (though it really inserts values).
Can anyone tell how I can resolve this issues?