-->
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: hbm2ddl generates different schema depending on mapping file
PostPosted: Mon Nov 09, 2009 6:56 pm 
Newbie

Joined: Mon Nov 09, 2009 6:35 pm
Posts: 1
Does anyone know why the following mapping entries generate different table column types? I usually write the mapping files by hand but I recently tried the jboss tools hibernate plugin for eclipse to generate the mapping files. The plugin puts a "column" element in the "property" element instead of making it an attribute.

This mapping entry creates a column of type tinyblob.

Code:
<property name="fileContent" type="binary" not-null="true" length="10485760">
    <column name="FILE_CONTENT"></column>
</property>


This mapping entry creates a column of type mediumblob.

Code:
<property name="fileContent" column="FILE_CONTENT" type="binary" not-null="true" length="10485760" />


I'm using hibernate-core-3.3.2.GA, MySQL 5.0.51a, and MySQL5Dialect.


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.