-->
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: Exporting schema using HibernateTool task
PostPosted: Wed Apr 25, 2012 1:48 am 
Newbie

Joined: Thu Apr 01, 2010 5:52 am
Posts: 2
Hi,
I have a question on exporting schema using HibernateTool task, the below annotations are not read and exported schema doesnt have the expected changes.. look at the below.. the size goes default to 255 instead of 30, how to achieve this, I dont want to specify the @Column size there, instead i am using, javax validation api..

pls help.

@NotNull
@Size(min = 1, max = 30)
@Column(name = "C_LAST_NAME")
private String lastName;

create table JpaHibernate.PUBLIC.T_CUSTOMER (
C_ID bigint not null,
C_FIRST_NAME varchar(255),
C_LAST_NAME varchar(255),


Top
 Profile  
 
 Post subject: Re: Exporting schema using HibernateTool task
PostPosted: Sun May 13, 2012 4:26 pm 
Newbie

Joined: Sun May 13, 2012 4:19 pm
Posts: 1
Anybody can help please? I'm having the same question just exactly as anemdhana...

_________________
Adam


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.