Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SQL Server identity not generated in the Mapping Files

 
leela addagulla
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am using SQL Server 2005. I am generating the Mapping Files and Domain Objects using the Eclipse Hibernate Code Generation Tools through Hibernate Plugin for the Eclipse.Almost all my tables have the identity type Primary Key. But in the .hbm.xml files generated it is not reflected. I see <generator class="assigned"> in the generated Mapping files. I had to change all the generated Mapping Files to point it to identity. I have to do this everytime I generate the Mapping Files. Is this a bug in Hibernate/Hibernate tools of Eclipse? Did anyone face this problem. Am I doing something wrong? Some body please reply me if you have any idea of the issue.

Thanks,
Leela
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic