因为以前做的一个软件数据库被我删了我想自动重新建表,原来没有这个功能,结果老是报错,谁能帮我看下!这是applicationContext.xml里的部分内容
      <prop key="hibernate.dialect">
${hibernate.dialect}
    </prop>
     <prop key="hibernate.show_sql">
${hibernate.show_sql}
    </prop>
我加了个<prop key="hibernate.hbm2ddl.auto">
${hibernate.hbm2ddl.auto.update} 
     </prop>用update也不对,老报错

解决方案 »

  1.   

    ${hibernate.hbm2ddl.auto.update}  这种表达式是引用某个properties的变量吧,你那个properties文件呢??
      

  2.   

    哦里面没值,刚到properties里加上了hibernate.hbm2ddl.auto.update=update这个
    但抱这个错误,看不懂在 sysdatabases 中找不到数据库 'dbCallcenter' 所对应的条目。没有找到具有该名称的条目。请确保正确地输入了该名称。
      

  3.   

    实体bean的配置文件中是不是有类似于dbo.表名这样的限定啊
      

  4.   

    ${hibernate.hbm2ddl.auto.update}  改成${hibernate.hbm2ddl.auto.creat}