<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<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></BODY></HTML>