Hi,
I have a class A and B. and B has a 1-1 relationship with A such that they have the following mapping:
<class name="B" table="B">
<id name="id" column="id">
<generator class="foreign">
<param name="property">Aref</param>
</generator>
</id>
<one-to-one name="Aref" class="A"
constrained="true"
cascade="all"/>
</class>
<class name="A" table="A">
<id name="id" column="id">
<generator class="identity"/>
</id>
</class>
Now when I try to save B I expect that A will be saved too. But I get the following connection pooling error:
Quote:
c3p0 -- Uh oh... getConnection() was called on a PooledConnection when it had already provided a client with a Connection that has not yet been closed. This probably indicates a bug in the connection pool!!!
[ERROR] JDBCExceptionReporter - -[Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.
Is it that C3P0 library that has been recommended in Hiberbate docs is buggy?
are there any other alternatives?