# Hibernate generateChangeLog does not write schemas

**URL:** <https://forum.liquibase.org/t/hibernate-generatechangelog-does-not-write-schemas/2618>\
**Category:** Liquibase Development\
**Created:** [February 15, 2013, 12:24am UTC](https://forum.liquibase.org/t/hibernate-generatechangelog-does-not-write-schemas/2618 "2013-02-15T00:24:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forum.liquibase.org/u/Guest)\
**Post date:** [February 15, 2013, 12:24am UTC](https://forum.liquibase.org/t/hibernate-generatechangelog-does-not-write-schemas/2618/1 "2013-02-15T00:24:00Z")

</div>

Hey, i'm having a problem with generating changeLogs from Hibernate annotations.

Somehow Liquibase does not create the 'schemaName' attributes when generating a&nbsp;changeLog, so all tables, keys etc. are created in the defaultSchema.

Is that a bug or is there some command&nbsp;to get these attributes?

&nbsp;

&nbsp;

I'm using the Liquibase Main.main() class with the following params..

{"--url","hibernate:hibernate.cfg.xml","--changeLogFile","changeLog.xml","generateChangeLog"}

&nbsp;

and annotations like this:

@Entity

@Table(name = "my\_table", schema = "my\_schema")
