I'm using SQL Server 2000 with JBoss EJB 3.0. For my identity column on a particular entity, I'm using GeneratorType.IDENTITY, which "should" let the DB insert a value into the identity column. However The generated SQL is trying to insert an explicit value (null) in the identity column, which (understandably) causes a SQLServer error. Is this a bug, or am I not using it properly? Thanks for any help.
Never mind - I set my hibernate dialect to SQLServerDialect, and it now works.