-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Inherited class insertion error.
PostPosted: Mon Apr 19, 2004 2:22 pm 
Beginner
Beginner

Joined: Fri Jan 23, 2004 10:26 am
Posts: 21
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 19, 2004 2:32 pm 
Beginner
Beginner

Joined: Fri Jan 23, 2004 10:26 am
Posts: 21
ok. problem solved, my bad, not making enough search. and damn you microsoft drivers..

solution is here

http://www.hibernate.org/120.html#A6


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.