max wrote:
table="interest"
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
<hibernate-mapping package="com.salatta.dal">
<class name="Invitation" table="invitations">
<id name="id" type="integer" column="INV_ID">
<generator class="org.hibernate.id.IncrementGenerator" />
</id>
<property name="name" column="NAME" type="string" not-null="false" length="25" />
<property name="surname" column="SURNAME" type="string" not-null="false" length="25" />
<property name="email" column="EMAIL" type="string" not-null="false" length="50" />
<property name="invitationCode" column="INV_CODE" type="string" not-null="false" length="25" />
<property name="invitationStatus" column="INV_STATUS" type="integer" not-null="false" length="11" />
<many-to-one name="member" column="MEMBER_ID" class="Member" not-null="false"></many-to-one>
</class>
</hibernate-mapping>
This is my hbm.xml file..
" <class name='Invitation' " part is used during the lowercase uperation
class name in written in lowercase.
When I change my class name to "Nvitation" it works.
But this is not a good solution.
If I overwrite NamingStrategy and tell hibernate to use invitation for the lowercase.. how can I inform hibernate that it should use the my CustomNamingStrategy class?[/code]