-->
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: property mapping formula attribute and default schema name
PostPosted: Wed Jul 06, 2005 4:40 pm 
Newbie

Joined: Tue May 24, 2005 9:03 am
Posts: 3
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.0.3

Name and version of the database you are using: Oracle 10g

I am using a <formula> tag inside a property mapping to perform an aggregate sql function to populate a derived property on my bean. In this formula I do a select on tables by name. Hibernate does not prepend the default schema name to these which leads to "table or view does not exist" errors. If I hardcode the schema name in the formula, it works fine. The problem is that that's kind of a no-no on our project as we are using JNDI to look up the schema name and set it in the configuration, and don't want to have to go about doing copy and pastes each time we deploy to a new environment with a new schema name. Does anyone know of a better aproach to derived properties that would allow me to avoid this? Any chance a future version of hibernate will prepend the default or mapping-declared schema name to tables referenced inside a formula tag or attribute?

Any help is appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 15, 2007 5:17 am 
Newbie

Joined: Mon Jun 26, 2006 11:43 am
Posts: 2
I have the same problem. Anyone have a solution for this?
Thanks
marc


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.