-->
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.  [ 1 post ] 
Author Message
 Post subject: Can Hibernate create Views in MySQL while doing SchemaUpdate
PostPosted: Sat May 27, 2006 1:10 pm 
Newbie

Joined: Mon Apr 10, 2006 1:42 am
Posts: 6
Location: Chennai
I have a Hibernate-MySQL problem....It goes like this...

Can hibernate create a view when I run the schema update as configured as
"<property name="hbm2ddl.auto">update</property> " in the Hibernate config file. I have a POJO mapped the same way as we do it for tables for the view I want to create with the columns that would be displayed in the view,

I got the following log output when i already created the view in MySQL:-

22:16:17,073 [INFO ] [hbm2ddl.DatabaseMetadata][getTableMetadata] [table not found: EPW3_USER_ACCTS]
22:16:17,073 [DEBUG] [hbm2ddl.SchemaUpdate][execute] [create table EPW3_USER_ACCTS (
USER_ID varchar(255) not null, NAME varchar(255), USER_NM varchar(255), MAIL_PASS tinyblob, MAIL_SRVR varchar(255), MAIL_ADDR varchar(255), MAIL_TOKEN varchar(255), ACCT_TYPE varchar(255), primary key (USER_ID))]
22:16:17,089 [ERROR] [hbm2ddl.SchemaUpdate][execute] [Unsuccessful: create table EPW3_USER_ACCTS (USER_ID varchar(255) not null, NAME varchar(255), USER_NM varchar(255), MAIL_PASS tinyblob, MAIL_SRVR varchar(255), MAIL_ADDR varchar(255), MAIL_TOKEN varchar(255), ACCT_TYPE varchar(255), primary key (USER_ID))]
22:16:17,105 [ERROR] [hbm2ddl.SchemaUpdate][execute] [Table 'epw3_user_accts' already exists]
22:16:17,105 [INFO ] [hbm2ddl.SchemaUpdate][execute] [schema update complete]

Now it first prints "table not found: EPW3_USER_ACCTS" then later prints "Table 'epw3_user_accts' already exists" when this is not a table but a view


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

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.