Sergi created Bug HHH-8347
Issue Type: Bug Bug
Affects Versions: 4.1.1
Assignee: Unassigned
Attachments: File.hbm.xml, ZProduct.hbm.xml
Components: core, metamodel
Created: 03/Jul/13 6:58 AM
Description:

I have an object mapped as following:

<hibernate-mapping>
<class name="idiada.zeus.domain.File" table="_FILE" schema="dbo" catalog="APP_ZEUS">
<id name="id" type="int">
<column name="ID" />
<generator class="identity" />
</id>
.....
<many-to-one name="product" class="idiada.zeus.domain.ZProduct" fetch="join" lazy="false" >
<column name="PRODUCT_ID" length="51" />
</many-to-one>
.....
</hibernate-mapping>

For field "product", which is a normal entity, when setting fetch mode to "select" works normally returning the object.

Changing the fetch mode to "join" causes an abnormal functionallity when there are several connections which causes the CPU increase the workload over 300% and creates lots of "jtdsXXXXX.tmp" files into Tomcat temp folder.

Environment: Tomcat 7.0.29 (on Suse Linux and Windows 7),
SQL Server 2008 R2 for database
JTDS as JDBC Driver
Project: Hibernate ORM
Priority: Major Major
Reporter: Sergi
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira