-->
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: Support for Substitution Variables or Properties in Mapping
PostPosted: Thu Dec 02, 2010 11:19 am 
Newbie

Joined: Mon Apr 09, 2007 12:25 pm
Posts: 19
Location: Boston, MA
I'm trying to figure out if there's a way to include/use substitution variables in Hibernate mapping files. For example, if I have the following mapping file:
Code:
<hibernate-mapping default-access="field">
   <class name="com.fidelity.shares.leo.domain.eventmodel.Warning"
      table="warning">

      <id name="${standardIdName}" column="id" type="long">
         <generator class="sequence">
            <param name="sequence">warning_seq</param>
         </generator>
      </id>

      <version name="version" column="version" />

   </class>
</hibernate-mapping>


where I have created a variable in the <id name=""> attribute, can I somehow pass in a value to "standardIdName" via Hibernate properties or some other mechanism?


Top
 Profile  
 
 Post subject: Re: Support for Substitution Variables or Properties in Mapping
PostPosted: Tue Jan 11, 2011 5:36 pm 
Newbie

Joined: Mon Apr 09, 2007 12:25 pm
Posts: 19
Location: Boston, MA
Can someone please confirm whether or not this is possible? Thanks!


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.