-->
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: NamingStrategy for key columns and multiple composites
PostPosted: Fri Oct 14, 2005 5:50 am 
Regular
Regular

Joined: Thu Oct 13, 2005 4:19 am
Posts: 98
Is there a naming strategy that does the following things:

1)
Code:
<class name="Person">
        <set name="dogSet">
            <key not-null="true"/>
            <one-to-many class="Dog"/>
        </set>
</class>


Where the key column name would end up "person"?


2)

Code:
<class name="Person">
        <component name="firstAddress" >
                <property name="street" not-null="true"/>
        </component>
        <component name="secondAddress" >
                <property name="street" not-null="true"/>
        </component>
</class>


Where the component street column names would be "firstAddress_street" and "secondAdress_street" instead of both "street" (which crashes)?

_________________
http://www.ohloh.net/accounts/ge0ffrey


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.