Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:3.0.5
Mapping documents:
<class
name="com.borneo.model.posting.Category"
table="CATEGORY"
lazy="false"
>
<id
name="id"
column="category_id"
type="java.lang.Long"
unsaved-value="null"
>
<generator class="increment">
</generator>
</id>
<version
name="version"
column="version"
type="java.lang.Integer"
/>
<property
name="name"
type="java.lang.String"
update="true"
insert="true"
>
<column
name="NAME"
length="50"
unique-key="UNIQUE_NAME_AT_LEVEL"
not-null="true"
/>
</property>
<many-to-one
name="parentCategory"
class="com.borneo.model.posting.Category"
cascade="none"
outer-join="false"
update="true"
insert="true"
foreign-key="FK1_PARENT_CATEGORY_ID"
>
<column
name="PARENT_CATEGORY_ID"
unique-key="UNIQUE_NAME_AT_LEVEL"
not-null="false"
/>
</many-to-one>
<set
name="childCategories"
lazy="false"
inverse="true"
cascade="all-delete-orphan"
sort="unsorted"
batch-size="10"
>
<key
>
<column
name="PARENT_CATEGORY_ID"
/>
</key>
<one-to-many
class="com.borneo.model.posting.Category"
/>
</set>
<set
name="categorizedItems"
lazy="false"
inverse="true"
cascade="all-delete-orphan"
sort="unsorted"
outer-join="false"
>
<key
>
<column
name="category_id"
length="16"
not-null="true"
/>
</key>
<one-to-many
class="com.borneo.model.posting.CategorizedItem"
/>
</set>
<property
name="created"
type="java.util.Date"
update="false"
insert="true"
column="created"
not-null="true"
/>
<property
name="expire"
type="java.util.Date"
update="true"
insert="true"
column="expire"
not-null="false"
/>
<set
name="categoryByCountry"
lazy="false"
inverse="true"
cascade="save-update"
sort="unsorted"
>
<key
column="fk_category_id"
>
</key>
<one-to-many
class="com.borneo.model.posting.CategoryByCountry"
/>
</set>
</class>
Name and version of the database you are using:mysql 4.1
Hi guys,
Is there any easy way hibernate3 offer to internationalize a Category table other than the method show in this website
http://www.theserverside.com/blogs/show ... ernational
As I found it too complicated and no complete code provided. But if anyone has the complete code for
http://www.theserverside.com/blogs/show ... ernational
pls provide here, Thanks !
regards,
Mark