hello everybody ... i am facing very different kind of problem.. i am learning hibernate3 and i am using MS SQL server 2000 as DB manager. I have created a table User with fields username PK int password varchar(50) i also have created the mapping file and class. and also my username field is not auto-incremented..
The problem is when i want to add a tuple in User table by using hibernate i got a exception..
Exception in thread "main" org.hibernate.exception.SQLGrammarException: could not insert: query created by hibernate is look likes as Hibernate: insert into User (password, username) values (?, ?) its the right query... but i dont know why it is not inserting value into database... kindly help me.. i am very tense due to this problem..