-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Writing to table with a none primitive type gave me an index
PostPosted: Fri Feb 25, 2011 9:12 am 
Newbie

Joined: Sat Feb 19, 2011 9:07 am
Posts: 8
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.