-->
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: component mapping with annotations | problem
PostPosted: Thu Sep 06, 2007 10:48 am 
Newbie

Joined: Mon Aug 06, 2007 9:34 am
Posts: 4
hello forum!

is it possible to map the following xml-fragment with annotations?

Code:
<class name="Institution" foo="bar"...>
        <component name="serviceHours">
            <component name="texts">
                <list name="texts" table="institution_serviceTexts">
                    <key column="institution_id" foreign-key="fk_institution_id"/>
                    <list-index column="list_index"/>
                    <many-to-many entity-name="ServiceText" column="servicetext_id"
                                  foreign-key="fk_servicetext_id"/>
                </list>
            </component>
        </component>
</class>


the object model is as follows (shortened):

Code:
class Institution{
ServiceHours serviceHours;

// getters and setters
}

class ServiceHours{
ServiceTexts texts;

// getters and setters
}

class ServiceTexts{
List<ServiceText> texts;

// getters and setters
}

class ServiceText{
String type;
String value;

// getters and setters
}


thanks in advance 4 ur help!
joachim


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 09, 2007 12:00 pm 
Newbie

Joined: Mon Aug 06, 2007 9:34 am
Posts: 4
any suggestions to this problem?
thank you very much!


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.