-->
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: Custom HQL bag mapping
PostPosted: Wed Jan 22, 2014 6:15 pm 
Newbie

Joined: Wed Jan 22, 2014 5:56 pm
Posts: 1
Hi, there is one way to customize one HQL that will be used in a bag mapping?


<bag name="productItems" cascade="all" inverse="true">
<key column="PRODUCT_ID" not-null="true" />
<one-to-many
class="com.macys.stars.pricing.domain.event.ProductItem" />

</bag>

or can I use HQL in the where mapping?


<bag name="productItems" cascade="all" inverse="true">
<key column="PRODUCT_ID" not-null="true" />
<one-to-many
class="com.macys.stars.pricing.domain.event.ProductItem" />
<where> product.state.current </where>
</bag>


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.