-->
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.  [ 3 posts ] 
Author Message
 Post subject: @Ids and @Length in postgreSQL dialect
PostPosted: Mon Oct 31, 2005 5:55 pm 
Beginner
Beginner

Joined: Sat Sep 17, 2005 10:41 am
Posts: 49
Hi all,

I'm trying to get Hibernate to autogenerate my DDL based on POJO annotation.

I've seen the following work:
Code:
@Length (max = 50)
public String name ;

Generates:
Code:
name | character varying (50)


However,
Code:
@Id (generate = GeneratorType.NONE)
@Length (max = 2)
public String id ;


Generates a varchar(255). It's a minor bug, since the workaround is to use the @Column annotation to set column length. Also, please note that HSQL exhibits the correct behavior with just the @Length annotation.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 02, 2005 6:50 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Open a bug in JIRA please.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 02, 2005 1:32 pm 
Beginner
Beginner

Joined: Sat Sep 17, 2005 10:41 am
Posts: 49
done.

http://opensource2.atlassian.com/projec ... se/ANN-136


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.