-->
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: sub-class tag
PostPosted: Thu Jul 16, 2009 1:10 pm 
Newbie

Joined: Thu Jul 16, 2009 1:01 pm
Posts: 2
Quote:
The content of element type "joined-subclass" must match
"(meta*,subselect?,synchronize*,comment?,tuplizer*,key,(property|many-to-one|one-to-one|component|
dynamic-component|properties|any|map|set|list|bag|idbag|array|primitive-array)*,joined-
subclass*,loader?,sql-insert?,sql-update?,sql-delete?,resultset*,(query|sql-query)*)".


is the error I get when Hibernate plugin reads the following mapping model.


I have a simple straight inheritance model defined with joined-subclass (I also tried it with a discrimator and subclass and join with no difference in result)

Code:
<hibernate-mapping>
    <class name="Activity" table="activity">
        <id name="id" type="string">
            <column name="id" length="32" />
            <generator class="assigned" />
        </id>
       
        <version name="version" type="int">
            <column name="version" not-null="true" />
        </version>
        <many-to-one name="login" class="Login" column="login_id" ></many-to-one>
        <property name="timeOn" type="int">
            <column name="time_on" not-null="true" />
        </property>
        <property name="activityType" type="string">
            <column name="activity_type" length="10" />
        </property>
        <property name="status" type="string">
            <column name="status" length="10" />
        </property>
        <property name="startTime" type="timestamp">
            <column name="start_time" length="0" />
        </property>
        <many-to-one name="game" class="
GamePerformance" column="game_id" ></many-to-one>

        <property name="lessonComplete" type="java.lang.Boolean">
            <column name="lesson_complete" />
        </property>
        <property name="exportStudentId" type="string">
            <column name="export_student_id" length="32" not-null="true" />
        </property>
       
        <joined-subclass  name="MasteryPerformance" table="mastery_performance">      
         <key column="id" foreign-key="activity_id"/>
         <version name="version" type="int">
            <column name="version" not-null="true" />
         </version>
         <property name="progress" type="byte">
            <column name="progress" not-null="true" />
         </property>
         <property name="exportStudentId" type="string">
            <column name="export_student_id" length="32" not-null="true" />
         </property>
       </joined-subclass>
    </class>



Help anyone?!


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.