-->
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: Why ScemaValidator doesn't detect minor changes to columns ?
PostPosted: Sun Oct 31, 2010 7:54 am 
Newbie

Joined: Sun Oct 31, 2010 7:45 am
Posts: 3
Hi everybody.

I'm just getting started and encountered confusing situation when adding some property to column like nullable or length=... doesn't being detected by SchemaValidator.
For example, I have the following column:
Code:
@Column(name = "MESSAGE_TEXT")   
private String text;

When I change it to the following, SchemaValidator doesn't detect changes:
Code:
@Column(name = "MESSAGE_TEXT", length = 50)   
private String text;

I tried this trick with annotations and mapping file and also with 'nullable' property, nothing works.
I suppose you will answer that validator doesn't support these, but can I somehow detect these changes to have at least be aware of them so I could manually edit database schema?

Thanks a lot !


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.