|Re: [eclipselink-dev] Tolerance of bad/invalid JPQL|
As Andre mentioned the root issue here is that the structure of the persistence unit configuration is incorrect but we have made changes to EclipseLink in the past to be more flexible as users needed. I think having a persistence unit property that configures EclipseLink to not halt persistence unit deployment when validating the JPQL is an acceptable approach as long as this property is off by default and only applied by the application in question through it's persistence.xml. If the desire is to have an application server always set the property by default then I think this is the wrong approach as it can lead to latent errors in a persistence unit.
This new property is incompatible with validate-only and EclipseLink should override this new property when performing a validate-only deployment.
I do disagree with not adding the query if it is invalid as this will throw a misleading exception. Instead a query should be added that will throw an exception the indicates the JPQL is invalid.
On 25/07/2014 2:57 PM, Tom Ware wrote:
I am struggling whether this feature helps or hinders the user. To me it is a flag that says, "don't properly validate my persistence unit", and in the absence of an understanding of the logic behind it, would be inclined to argue the Open JPA functionality was a bug.
Back to the top