Hello,
i'm stating to use hibernate with ms sql server...
some time ago i used with postgresql.
retrevieng data from sql server has not been a problem, however invocation of save method is not working, yet the proper sql sentences are been generated:
Code:
Hibernate: insert into myTable (name, description, idUser) values (?, ?, ?) select SCOPE_IDENTITY()
but no register is created on the db, no exception thrown neither.
what could be the problem?
i must also mention some strange warning after the first data fetch,
Code:
19:08:40,359 WARN JDBCExceptionReporter:20 - SQL Warning: 0, SQLState:
19:08:40,359 WARN JDBCExceptionReporter:28 - [Microsoft][SQLServer 2000 Driver for JDBC]Database changed to myBD
19:08:40,375 WARN JDBCExceptionReporter:20 - SQL Warning: 0, SQLState:
19:08:40,375 WARN JDBCExceptionReporter:28 - [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Changed database context to 'myBD'.
19:08:40,375 WARN JDBCExceptionReporter:20 - SQL Warning: 0, SQLState:
19:08:40,437 WARN JDBCExceptionReporter:28 - [Microsoft][SQLServer 2000 Driver for JDBC]Language changed to us_english
19:08:40,437 WARN JDBCExceptionReporter:20 - SQL Warning: 0, SQLState:
19:08:40,437 WARN JDBCExceptionReporter:28 - [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Changed language setting to us_english.
this is the only configuration (in adition to the .hbm.xml) i include, i'm using springframework.
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">net.sf.hibernate.dialect.SQLServerDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.connection.url">jdbc:microsoft:sqlserver://server;DatabaseName=myDB;PortNumber=1433;User=***;Password=***;schema=dbo;catalog=myDB</prop>
<prop key="hibernate.connection.driver_class">com.microsoft.jdbc.sqlserver.SQLServerDriver</prop>
<prop key="hibernate.connection.username">***</prop>
<prop key="hibernate.connection.password">***</prop>
</props>
</property>
i'm confused about this strange (alt least, to me) behaviour, what i'm missing??
any help will be deeply appreciated.
Gerardo