-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Schema Generation
PostPosted: Mon Aug 15, 2011 8:17 pm 
Newbie

Joined: Mon Aug 15, 2011 8:09 pm
Posts: 3
I am attempting (unsuccessfully) to create a database from our annotated classes for use in unit tests. We are using hibernate.hbm2ddl.auto=create to set this up but unfortunately am running into "Unsuccessful: create table XYZ ... already exists in Schema"

We have two classes pointing to the same table, one is acting as a view so we don't have to load several blobs. The problem lies in hibernate creating the view and then trying to create the full table which fails because it already exists. Is there an easy way (or hard way) to tell hibernate not to create the table from the view class?

I tried not mapping the view class during creation but that resulted in hibernate failing to load the rest of mappings.

Regards,
Thomas


Top
 Profile  
 
 Post subject: Re: Schema Generation
PostPosted: Tue Aug 16, 2011 6:01 pm 
Newbie

Joined: Tue Aug 16, 2011 5:58 pm
Posts: 6
Any luck Thomas? I am experience similar issues with Hibernate thinking it already created the tables I want to finish...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.