persistence@glassfish.java.net

Re: Add support for enum literals to EJBQL

From: Tom Ware <tom.ware_at_oracle.com>
Date: Fri, 10 Feb 2006 10:29:44 -0500

Hi Michael,

  The changes look good.

Thanks,
Tom

Michael Bouschen wrote:

>Hi Tom,
>
>attached you find my changes to support enum literals in EJBQL (issue
>231). Please have a look.
>
>Some details: when creating the parse tree in the .g file we cannot
>decide whether a dot expression is an enum literal or a relationship
>navigation starting from a variable. So I added the support to the
>DotNode parser tree node. It checks whether the left hand side denotes
>an enum type and the right hand side is a constant of that type. I also
>added a helper class for any type related information and moved the type
>helper methods from SumNode to this new helper class.
>
>Thanks!
>
>Regards Michael
>
>
>

-- 
Tom Ware
Principal Software Engineer
Oracle Canada Inc.
Direct: (613) 783-4598
Email: tom.ware_at_oracle.com