Changes to the property length setting in hibernate mapping file

View: New views
2 Messages — Rating Filter:   Alert me  

Changes to the property length setting in hibernate mapping file

by qwerty3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

Just a quick question, when using liquiBase to create an SQL update script from a hibernate mapping file, does liquibase go to the level of adjusting changes to property/field lengths? For example, if I change the length setting in the hibernate class mapping file from 20 to 50 should liquibase create a SQL statement to adjust this column length in the database?

 <property name="name" type="string" column="name" not-null="true" length="50" />

Thanks.

Re: Changes to the property length setting in hibernate mapping file

by Voxland, Nathan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Not having the code in front of me, I'm thinking it doesn't check that.  The best way to know for sure would be to try it out :)
 
Nathan

________________________________

From: liquibase-user-bounces@... on behalf of qwerty3
Sent: Wed 7/23/2008 7:03 PM
To: liquibase-user@...
Subject: [Liquibase-user] Changes to the property length setting in hibernate mapping file




Hi All,

Just a quick question, when using liquiBase to create an SQL update script
from a hibernate mapping file, does liquibase go to the level of adjusting
changes to property/field lengths? For example, if I change the length
setting in the hibernate class mapping file from 20 to 50 should liquibase
create a SQL statement to adjust this column length in the database?

 <property name="name" type="string" column="name" not-null="true"
length="50" />

Thanks.
--
View this message in context: http://www.nabble.com/Changes-to-the-property-length-setting-in-hibernate-mapping-file-tp18623076p18623076.html
Sent from the LiquiBase - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Liquibase-user mailing list
Liquibase-user@...
https://lists.sourceforge.net/lists/listinfo/liquibase-user




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Liquibase-user mailing list
Liquibase-user@...
https://lists.sourceforge.net/lists/listinfo/liquibase-user

winmail.dat (6K) Download Attachment
LightInTheBox - Buy quality products at wholesale price