<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
For M2 I'll look at changing the namespace for ASM to avoid this issue.
Not sure how you'll avoid the issue till then.<br>
<br>
Mark<br>
brad hadfield wrote:
<blockquote
cite="mid:H00000690011070f.1177614763.scalixmail.pitchpointsolutions.com@MHS"
type="cite">
<meta content="MSHTML 6.00.6000.16414" name="GENERATOR">
<div><font face="Arial" size="2"><span class="991034718-26042007">Hi,
I wonder if anyone could help me?<br>
<br>
I'm attempting to use the 'from' keyword in the same fashion as the
sample found on the Release Notes/Language Improvement wiki. The
example shows a piece of syntax that uses the 'from' keyword to obtain
data via a Hibernate query. i.e:</span></font></div>
<div><font face="Arial" size="2"><span class="991034718-26042007"></span></font> </div>
<div><font face="Arial" size="2"><span class="991034718-26042007">
$r : Restaurant( $postCode ) from hbSession.getNamedQuery( "some query"
).setProperties( [ key1 : value2, key2 : value ] ).list()<br>
</span></font></div>
<div><font face="Arial" size="2"><span class="991034718-26042007"><br>
I'm having difficulty executing syntax using this keyword because
Hibernate uses CGlib which relies on ASM 1.5.3 - the 'from' keyword
seems to rely on MVEL which uses ASM 3.0.</span></font></div>
<div><font face="Arial" size="2"><span class="991034718-26042007"></span></font> </div>
<div><font face="Arial" size="2"><span class="991034718-26042007">ASM
3.0 is not backwards compatible with ASM 1.5.3 and I get 'no such
method' errors.</span></font></div>
<div><font face="Arial" size="2"><span class="991034718-26042007"></span></font> </div>
<div><font face="Arial" size="2"><span class="991034718-26042007">So
how does one get the 'from' keyword to work in an environment running
Hibernate?</span></font></div>
<div><font face="Arial" size="2"><span class="991034718-26042007"></span></font> </div>
<div><font face="Arial" size="2"><span class="991034718-26042007">Thanks,<br>
Brad</span></font></div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>