-->
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: default column length
PostPosted: Tue Jun 15, 2004 2:19 pm 
JBoss jBPM Developer
JBoss jBPM Developer

Joined: Thu Aug 28, 2003 11:56 am
Posts: 30
Location: Belgium
hibernate version: 2.1.1

I see in class net.sf.hibernate.mapping.Column:

Code:
private static final int DEFAULT_PROPERTY_LENGTH = 255;
private int length=DEFAULT_PROPERTY_LENGTH;


A negative side effect of this is that in the schema export, it is not possible to create hibernate mappings that generate ddl in which the length is not specified.

Would it be an idea change that to ...

Code:
private static final int DEFAULT_PROPERTY_LENGTH = -1;
private int length=DEFAULT_PROPERTY_LENGTH;


so that no length specification is generated when the schema is exported...


Regards, Tom.


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.