Problem using Hibernate and SQL Server 2008

后端 未结 3 441
谎友^
谎友^ 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:27

    Put below configuration into mapping file. It resolved the Invalid object exception.

    
    

    Change the above line into Mapping file. It should be work. Because Mssql server have default schema (dbo). That's why use the fully classified table name.

提交回复
热议问题