-->
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: Getting more in depth configuration information
PostPosted: Tue Nov 21, 2006 7:15 pm 
Newbie

Joined: Tue Nov 21, 2006 7:08 pm
Posts: 1
Here is a snippet of configuration code from our .hbm.xml file:


Code:
<hibernate-mapping>

    <class name="com.fubar.dao.Campaign" table="MSG_CAMPAIGN">
   
        <id name="id" column="CAMPAIGN_ID" type="int" unsaved-value="0">
            <generator class="sequence">
                <param name="sequence">MSG_CAMPAIGN_SEQ</param>
            </generator>
        </id>       

        <property name="type" column="CAMPAIGN_TYPE" />
        <property name="name" column="CAMPAIGN_NAME" />
        <property name="namespaceId" column="NAMESPACE_ID" />

        <many-to-one name="client"
              class="com.fubar.dao.Client"
              column="MSG_CLIENT_ID" />

      <set name="shortcodes" inverse="true">
         <key column="CAMPAIGN_ID"/>
         <one-to-many class="com.fubar.dao.Shortcode"/>
      </set>
      <set name="properties" inverse="true">
         <key column="CAMPAIGN_ID"/>
         <one-to-many class="com.fubar.dao.Property"/>
      </set>

    </class>


My question is, can I, through programmatic means perhaps through the Configuration object, access the sequence parameter value of the sequence generator for the id field of this class, and if so, how?[/code]


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.