Hi,
I have an class with a number of primitive types and one that is a class that has a many-to-one relationship. I have included part of the .hbm.xml below:
Code:
<many-to-one name="inventoryItem" class="com.store.product.inventory.pojo.ItemPojo" lazy="false"
column="inventoryItem" cascade="all"/>
I can successfully write to the database but when I look at the data, through mysql, it is just prints an index value!!! When I check the described table it is like the following
Code:
+----------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------------+--------------+------+-----+---------+-------+
| inventoryItem | bigint(20) | YES | MUL | NULL | |
Can someone please explain what is happening here? What is MUL? Is this correct?
Thanks,
Paul