-->
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: Using expressions (EL) in hibernate mapping (hbm) files
PostPosted: Wed Mar 30, 2011 2:09 am 
Newbie

Joined: Wed Mar 30, 2011 1:59 am
Posts: 1
Hi All,

Anybody has ever used dynamic properties or expressions of the form ${} in hbm files. If yes, how to make hibernate know about the values of these expressions.

I am working on an existing 3-tier J2EE app which uses hibernate(3.3.2) along with other tech.
The application's data model has several tables & there are corresponding hibernate mapping xml (hbm) files.

Almost all of these files are using expression of the form ${} for class attribute.

For eg:
Code:
---------   
<set name.......................>
<key ..>  <column name.../>  </key>
<one-to-many class="${someName}"/>
</set>
------------


Since its an existing app, I tried digging into the code but couldn't find how the app is letting hibernate know the location from where it can load the values of those expressions.

What I am trying to do is run the hbm2ddl SchemaExportTask using Ant on *.hbm.xml file and the Ant build is failing with an exception: Schema text failed: Association references unmapped class: ${someName}

Any help is appreciated.


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.