i have two classes like these:
Code:
public MyBase()
{
Long id;
String name;
....
}
public MyClass extends MyBase
{
String serial;
...
}
and my mapping file is like this:
Code:
....
<class name="......MyBase" table="BASE">
<id name="id" column="BASE_ID" type="long">
<generator class="increment"/>
</id>
<property name="name" column="NAME" type="string"/>
....
<joined-subclass name="...MyClass" table="MYCLASS">
<key column="BASE_ID"/>
<property name="serial" column="SERIAL" type="string"/>
....
</joined-subclass>
</class>
....
While using MSSQL (Microsoft drivers, sorry.), when i want to add an MyClass object instance to the database, system gives me this error:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.
What can i do for this? When i use an in memory HSQLDB, this error does not occur.