-->
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.  [ 2 posts ] 
Author Message
 Post subject: Mapping from Long & boolean
PostPosted: Wed Feb 22, 2006 10:43 am 
Newbie

Joined: Fri Feb 17, 2006 12:18 am
Posts: 11
hi, i'm using hibernate3 and xdoclet to generate hbm.xml using ant task "schemaexport", however, the generated ddl is:

Long -> numeric(19, 0)
boolean -> tinyint

I think Long->bigint, boolean->bit is more reasonable. how can i specify the mapping types?

my code:

Code:
/**
* @hibernate.id
*   column="id"
*   unsaved-value="null"
*   not-null="true"
*   generator-class="increment"
*/
public Long getId() { return id; }


Top
 Profile  
 
 Post subject: DDL
PostPosted: Wed Feb 22, 2006 6:16 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
Generate DB schema from SQL script and have full control over types, additional indexes, triggers, views, etc.

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


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

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.