1.Hibernate.hbm2ddl.auto=update 2.<id name="id"> <column name=""/> </id> [Hibernate]SchemaUpdate建立索引问题 http://xmkevinchen.iteye.com/blog/196372