-->
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: An Exotic Component
PostPosted: Tue Oct 17, 2006 11:32 am 
Newbie

Joined: Tue Aug 15, 2006 6:00 pm
Posts: 2
I am trying to create an object of type “INextQueueAlgorithm” using the same table of the owning Class “QueueGroup” table. The code runs with no errors but dose not save anything to the column “algorithmType”. Is there a better way of doing this?




<class name="AbstractQueue" table="IQueue">
<id name="queueID" type="QueueIDUserType">
<column name="queueID" />
<generator class="assigned" />
</id>
<discriminator
column="type" type="string" length="50" />
<property name="creationDate" type="calendar">
<column name="creationDate" length="23" />
</property>
<property name="name" type="string">
<column name="name" length="20" />
</property>
<subclass
name="QueueGroup"
discriminator-value="QueueGroup">

<component name="nextQueueAlgorithm"
class="INextQueueAlgorithm"
insert="true"
update="true">
</component>
</subclass>

</class>

<class name="INextQueueAlgorithm" >
<id type="string">

</id>
<discriminator
column="algorithmType" type="string" length="50" />
<subclass
name="FinishFirstAlgorithm"
discriminator-value="FinishFirstAlgorithm">
</subclass>
<subclass
name="RoundRobinAlgorithm"
discriminator-value="RoundRobinAlgorithm">
</subclass>
</class>


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.