Rails migration framework in java

Hi, Is there any schema framework in java similar to migration framework in rails. I heard that hibernate schema framework can do the same. But iam not able to compare both since i dont know hibernate. Any help?

There isn't anything like migrations for Java and Hibernate doesn't do it. Hibernate builds a whole schema based on your models and loads it into the database, but it's just that, you don't have versions, the "up" and "down" approach or anything like that.

It would be like having only the schema.rb file.