-->
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: <set> inside of a <join>
PostPosted: Tue May 30, 2006 1:34 am 
Regular
Regular

Joined: Mon Jun 13, 2005 12:38 pm
Posts: 56
Location: Austin, TX
I want to be able to use the following mapping. The problem I face is that a <set> cannot exist in a <join>. I looked in JIRA to see if someone has added this as a feature request, but there were too many results to sift though. I was wondering if anyone knows if this has been added as a feature request.



Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping package="com.digitaldarwin.hibernate.model">
    <class name="Event" table="Event">

        <id name="id" column="eventId">
            <generator class="native">
                <param name="sequence">event_eventid_seq</param>
            </generator>
        </id>

        <discriminator column="eventType" type="string"/>

        <subclass name="Enforcement" discriminator-value="enforcement">
            <join table="Enforcement">
                <key column="eventId"/>
                <property name="name" column="name"/>
            </join>
        </subclass>

        <subclass name="LicensePlateSuspend" discriminator-value="license plate suspend">
            <join table="LicensePlateSuspend">
                <key column="licensePlateSuspendId"/>
                <set name="licensePlates">
                    <key>
                        <column name="licensePlateSuspendId"/>
                        <column name="licensePlate"/>
                    </key>
                    <one-to-many class="LicensePlate"/>
                </set>
            </join>
        </subclass>

    </class>
</hibernate-mapping>


thanks,
Mike


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 31, 2006 1:08 am 
Regular
Regular

Joined: Mon Jun 13, 2005 12:38 pm
Posts: 56
Location: Austin, TX
I've added this issue to JIRA.

http://opensource.atlassian.com/project ... e/HHH-1797


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.