Ognjen-

It seems like a reasonable enhancement. Do you want to open a jira issue for it?

If you are interested in making a patch with the enhancement, the parser is at openjpa-kernel/src/main/jjtree/org/apache/openjpa/kernel/ jpql/JPQL.jjt



On Jun 13, 2007, at 6:11 PM, Ognjen Blagojevic wrote:

Hi Marc,

The specification doesn't appear to say whether or not a newline is allowed in queries or not. Our parser seems to disallow it, so I don't think it is currently possible to have a query with a newline in it.

The query I gave as an example is really a simple one (select o from Object o), but I think that it would be much easier for the developer if he can structure complex queries in several lines.

Is there a possibility to remove this restriction from the parser?


Ognjen

Reply via email to