-->
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: SchemaValidator can't find views on oracle9i
PostPosted: Wed Dec 28, 2005 3:10 pm 
Newbie

Joined: Wed Dec 28, 2005 2:44 pm
Posts: 8
When we set hibernate.hbm2ddl.auto to validate the validation fails announcing "Missing Table" about a view.

We tried to pinpoint the problem so we first replaced the view with a simple one, that simply selects a whole table (select * from table), then It failed when we mapped the entity to the view and succeeded when we mapped it to the Table.

While debugging we found that in a class called org.hibernate.tool.hbm2ddl.DatabaseMetadata, in a getTableMetadata there is a call to java.sql.DatabaseMetaData.findTables when setting the fourth parameter (types) to {"TABLE"} (defined as a class-level constant).

We checked the documentation of findTables and found it is not defined what are the meanings of the types passed as parameter. We checked it for oracle9i with ojdbc14-10.2.0.1.0.jar and found it returnes views if types contains "VIEW" and not if its {"TABLE"}.

Is this a bug?
If so, should how should we go about fixing it?
Is this the correct forum or should we transfer it to some other forum(\mailing list)?

respectfully,
Yariv Yaari.

Hibernate version:3.1rc2

Name and version of the database you are using:oracle9i


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 28, 2005 4:22 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Please open an Improvement JIRA issue, titled "SchemaValidator skips views on Oracle".


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.