Hibernate version:Tools 3.1 beta 4
First time tring to use the Hibernate Console perspective and I cant get the console to create a sessionfactory.
The Error says Hibernate tools Sessionfactory error: entity class not found com.portal.model.TBLProperties
I think I have included this directory for my POJO and the one Mapping file correctly becuase I can visual see the class in the Hibernate Configuration Perspective ...under Configuations and I can also see the Database attribues as well.
What do you think could be the problem?
Thanks inadvance for your thoughts!
Mapping documents:
-------------Console configuration ----------------------
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.password">pmdev123</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3309/test</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
</session-factory>
</hibernate-configuration>
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.portal.model">
<class name="TBLProperties"
table="TBL_APP_PROPERTIES"
discriminator-value="C">
<id
name="propSeqNum"
type="java.lang.Integer"
column="PROP_SEQ_NUM"
>
<generator class="assigned" />
</id>
<property
name="propKeyTxt"
type="java.lang.String"
column="PROP_KEY_TXT"
length="80"
/>
<property
name="propKeyValTxt"
type="java.lang.String"
column="PROP_KEY_VAL_TXT"
length="2500"
/>
<property
name="propEnvrnCd"
type="java.lang.String"
column="PROP_ENVRN_CD"
length="3"
/>
<property
name="propKeyCmntTxt"
type="java.lang.String"
column="PROP_KEY_CMNT_TXT"
length="255"
/>
<property
name="propSectTxt"
type="java.lang.String"
column="PROP_SECT_TXT"
length="50"
/>
</class>
</hibernate-mapping>