-->
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: Validation problem
PostPosted: Thu Jan 24, 2008 5:33 am 
Beginner
Beginner

Joined: Thu Apr 12, 2007 3:26 am
Posts: 35
Location: Germany
Hi, we are using Hibernate's schema validation feature in our testcases (Database: Oracle 10i) and have a big problem: Hibernate checks sometimes tables of other user too.

Setup:
We have a user which has access to all schema's. The user was created with following statements:
Code:
drop user cruisecontrol_test cascade;
create user cruisecontrol_test identified by cruisecontrol_test default tablespace users;
commit;
Grant connect, dba, imp_full_database, resource, unlimited tablespace to cruisecontrol_test identified by cruisecontrol_test;


The persistence.xml looks like this:
Code:
<persistence>
   <persistence-unit name="myPersistenceUnit">
                ...
                <property name="hibernate.connection.username">
            cruisecontrol_test
      </property>
      <property name="hibernate.connection.password">
            cruisecontrol_test
      </property>
      <property name="hibernate.dialect">
         org.hibernate.dialect.OracleDialect
      </property>
                ...
        </persistence-unit>
</persistence>


We have an entity MyEntity which is mapped to the table cruisecontrol_test.MY_TABLE. Until now, hibernate has only checked this table. But today, hibernate checked the table an_other_schema.MY_TABLE. Because the table has a wrong structure, hibernate threw an error.

My question is: Why does hibernate check the tables of the other schema and not only the tables for the schema cruisecontrol_test?


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.