-->
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: Mapping attribute(length) not working for long(java)
PostPosted: Wed Oct 25, 2006 8:09 am 
Newbie

Joined: Wed Sep 28, 2005 4:57 am
Posts: 3
Hi guys,

I'm optimising my database fields in my hibernate mappings. Im trying to set the lengths of the columns.
It works fine with my
Code:
String
properties :

<property name="telh" length="35"/> is generated as follows in mysql:
telh - varchar(35)

which is correct.
But I have problems wit java type
Code:
long
.
<property name="cent" length="13"/> is genrated always as:
cent - bigint(20).
I cant seem to change the length.

As you can follow, Im using
Code:
<property name="hbm2ddl.auto">create</property>
to generate my database.

Any help would be much appreciated.

Thanks,
Gawie


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.