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.  [ 4 posts ] 
Author Message
 Post subject: filter and <= =>
PostPosted: Fri Mar 24, 2006 7:58 pm 
Newbie

Joined: Wed Mar 22, 2006 3:22 pm
Posts: 9
Hibernate version:
3.1
Mapping documents:
NA
Code between sessionFactory.openSession() and session.close():
NA
Full stack trace of any exception that occurs:
NA
Name and version of the database you are using:
NA
The generated SQL (show_sql=true):
NA
Debug level Hibernate log excerpt:
NA


How do I use < and > within a filter? The less then sign ends the filter element.

<filter name="depthRangeFilter" condition=":topDepth >= TOP_DEPTH and :baseDepth <= BASE_DEPTH"/>


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 24, 2006 9:04 pm 
Expert
Expert

Joined: Mon Jan 09, 2006 5:01 pm
Posts: 311
Location: Sacramento, CA
try surrounding with <![CDATA[...]]>

This should work...

ie:

<filter name="depthRangeFilter" condition=":topDepth <![CDATA[>=]]> TOP_DEPTH and :baseDepth <![CDATA[<=]]> BASE_DEPTH"/>

_________________
-JT

If you find my replies helpful, please rate by clicking 'Y' on them. I appreciate it.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 26, 2006 3:38 pm 
Newbie

Joined: Wed Mar 22, 2006 3:22 pm
Posts: 9
use &lt; and &gt


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 12:17 am 
Expert
Expert

Joined: Mon Jan 09, 2006 5:01 pm
Posts: 311
Location: Sacramento, CA
the CDATA didn't work?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.