Problem using Hibernate and SQL Server 2008

后端 未结 3 442
谎友^
谎友^ 2021-01-19 06:34

I\'m having problems using Hibernate and SQL Server 2008. When I try to save an object to database Hibernate throws this:

could not retrieve snapshot: com.my         


        
3条回答
  •  暖寄归人
    2021-01-19 07:21

    So is there any other Hibernate configuration I need to make?

    With your current setup, I guess you'll have to specify the schema. For example, in the mapping:

    
    

    But you can also specify the default schema using the hibernate.default_schema property (see 3.4. Optional configuration properties).

    Just in case, you can create your own schema.

提交回复
热议问题