A new topic, '@TableGenerator is ignored in diffDatabaseToChangeLog', has been
made on a board you are watching.
You can see it at
http://liquibase.org/forum/index.php?topic=118.new#new
The text of the topic is shown below:
I'm using JPA annotations in a Hibernate project and testing Liquibase for its
usability
I have seen that currently persistence.xml files arent supported but will be
in version
2.0 which is excellent (any idea when a final release is to be expected).
But another thing Ive noticed is that in the diffDatabaseToChangeLog ant task
it working
oke using the JPA annotations, but the @TableGenerator annotation is ignored.
I have defined for instance the following entity
@Entity
@Table(name="Test2")
@TableGenerator(name="testGen", table="idgenerator",
pkColumnName="generatorKey",
valueColumnName="generatorValue",
pkColumnValue="testGen")
public class Test2 {
@Id
@GeneratedValue(strategy=GenerationType.TABLE, generator="testGen")
private Integer id;
}
When running diffDatabaseToChangeLog against an db not containing the table
Test2
but it does contain the idgenerator table though. It results in the following
changeset:
<changeSet author="Author (generated)" id="1250156009387-1">
<createTable tableName="Test2">
<column name="id" type="integer">
<constraints nullable="false" primaryKey="true"
primaryKeyName="Test2PK"/>
</column>
</createTable>
</changeSet>
<changeSet author="Author (generated)" id="1250156009387-4">
<dropTable tableName="idgenerator"/>
</changeSet>
So the idgenerator table gets removed instead of maintained, this cannot be
correct.
In case I specify a non-existing table generator table it isnt created at all
it seems like this is a bug.
Unsubscribe to new topics from this board by clicking here:
http://liquibase.org/forum/index.php?action=notifyboard;board=1.0
Regards,
The LiquiBase Community Forum Team.------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Liquibase-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/liquibase-user