-->
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: Annotations, hbm2ddl and constraints
PostPosted: Thu May 22, 2008 5:50 pm 
Newbie

Joined: Thu May 22, 2008 5:21 pm
Posts: 1
Hello,

I'm having a problem with generating DDL with Ant hbm2ddl. I would like to add constraints for columns that are annoted with e.g. @Length(min=3,max=25). Unfortunately, schema is created without constraints.

Code:
   @Column(name = "name_abc", length = 25, nullable = false, unique = true)
   @Length(min=3,max=25)
   public String getName() {
      return name;
   }



I'm using latest releases of all Hibernate binaries.
My DB is PostgreSQL


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.