[jboss-user] [EJB 3.0] - Re: Automatic table creation
georgesberscheid
do-not-reply at jboss.com
Fri Jul 6 10:27:22 EDT 2007
Hi,
thanks for you reply.
<property name="hibernate.hbm2ddl.auto" value="update" />
All it says in addition to the above is the following:
16:12:18,321 INFO [Ejb3Configuration] found EJB3 Entity bean: eu.mpulse.commons.repository.customers.Account
| 16:12:18,331 INFO [Ejb3Configuration] found EJB3 Entity bean: eu.mpulse.commons.repository.customers.Customer
| 16:12:18,712 INFO [AnnotationBinder] Binding entity from annotated class: eu.mpulse.commons.repository.customers.Account
| 16:12:18,712 INFO [EntityBinder] Bind entity eu.mpulse.commons.repository.customers.Account on table accounts
| 16:12:18,672 INFO [AnnotationBinder] Binding entity from annotated class: eu.mpulse.commons.repository.customers.Customer
| 16:12:18,672 INFO [EntityBinder] Bind entity eu.mpulse.commons.repository.customers.Customer on table customers
| 16:12:21,236 ERROR [SchemaUpdate] Unsuccessful: alter table accounts add index FK809DBBE624CB3F8D (customer_id), add constraint FK809DBBE624CB3F8D foreign key (customer_id) references customers (id)
| 16:12:21,236 ERROR [SchemaUpdate] Duplicate key name 'FK809DBBE624CB3F8D'
but those messages all seem related to the original problem to me.
Thanks,
Georges
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061330#4061330
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061330
More information about the jboss-user
mailing list