[hibernate-issues] [Hibernate-JIRA] Created: (HHH-7286) SessionFactory getImplementors method causes performance issues with entity-name attribute

Alain Menu (JIRA) noreply at atlassian.com
Mon Apr 30 08:54:49 EDT 2012


SessionFactory getImplementors method causes performance issues with entity-name attribute
------------------------------------------------------------------------------------------

                 Key: HHH-7286
                 URL: https://hibernate.onjira.com/browse/HHH-7286
             Project: Hibernate ORM
          Issue Type: Improvement
          Components: core
    Affects Versions: 3.6.5
         Environment: Hibernate 3.6.5 Final, Orcale database 11g, JBoss 4.2.2
            Reporter: Alain Menu


Hibernate provokes useless accesses to the class loader of JBoss due to the attribute entity-name which is present in each hbm mapping file. Hibernate tries to instantiate a class having this name before trying with the real name of the actual business object which cause a performance overhead and contention under heavy load conditions (benchmarking).

<hibernate-mapping package="com.example.hibernate.businessobject">

	<class name="Employee" table="EMP" entity-name="Employee_EMP">
		<!-- cache usage="read-only"/ -->
		<id name="trigramme" type="string" column="CODUSR" />
		<property name="firstname" column="PREUSR" type="string" />
		<property name="name" column="NOMUSR" type="string" />
		<property name="email" column="EMLUSR" type="string" />
	</class>

</hibernate-mapping>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list