-->
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: how to configure which schema to use?
PostPosted: Wed Sep 05, 2007 9:52 am 
Regular
Regular

Joined: Fri Feb 09, 2007 3:47 pm
Posts: 56
I may have figured out my missing column error.

it seems that hibernate is finding a table from another schema that has has the same name as another table it uses

is there something i can put into the mapping config to let hibernate know what schema it should find this table in?



09:33:29,797 INFO [TableMetadata] table found: TSTLIVE.COUNTRY
09:33:29,797 INFO [TableMetadata] columns: [country_name, region_id, domain_name, country_id, language_id, image_path, locale_identifier]
09:33:29,807 INFO [TableMetadata] table found: TSTLIVE.COUNTRY_LOCAL_CONTENT
09:33:29,807 INFO [TableMetadata] columns: [country_id, country_local_id, display_name, language_id]
09:33:29,828 INFO [TableMetadata] table found: DANTS.DEVICE
09:33:29,828 INFO [TableMetadata] columns: [model, device_id, serial]
09:33:29,838 DEBUG [Hibernate] Starting failed jboss.har:service=Hibernate
org.hibernate.HibernateException: Missing column: NAME

DANTS is another schema which hibernate should not be using


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 05, 2007 11:41 am 
Newbie

Joined: Tue Sep 04, 2007 2:21 pm
Posts: 14
In your hibernate.cfg.xml you can specify a default schema:

<property name="default_schema">???</property>

or in your class mapping you can qualify the table name with the schema.


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.