-->
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: fetching strategy for elements in composite key
PostPosted: Tue Feb 28, 2012 6:34 am 
Newbie

Joined: Tue Feb 28, 2012 6:02 am
Posts: 1
Hi there,

I have a legacy piece of structure that looks like the following:

Code:
<composite-id>         
     <key-property name="foreign-key1" type="string" column="KEY1">
     </key-property>

     <key-property name="foreign-key2" type="string" column="KEY2">
     </key-property>

     <key-property name="foreign-key3" type="string" column="KEY3">
     </key-property>
</composite-id>

(... other stuff goes here ...)


Is there a way of specifying a fetching strategy for one or more of the elements of the
composite key (e.g., putting 'fetch="select" ' inside the definition of 'key-property')?
For instance:

Code:
(...)
<key-property name="foreign-key2" type="string" column="KEY2" fetch="select">
</key-property>

<key-property name="foreign-key3" type="string" column="KEY3" fetch="join">
</key-property>
(...)


Thanks,

Barata


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.