Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing error message #20

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments
Open

Confusing error message #20

GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

The error message:

  "the column property must be specified for
   parameter "+param.getSimpleName()+" in query"

in DMLMethod.java is confusing/misleading.

I got this because I was using a java.util.Date type with a type mapper -- I 
think the loop over JavaType.values() with the comparison of 
javaType.clazz.getName() might have mis-matched on "Date" -- maybe that needs 
to be .getCanonicalName().  I wound up fixing it without tracing down the exact 
problem.

The error could be more informational though -- it seems to be saying that the 
@Column annotation is required, but that wasn't the actual problem -- the 
problem was definitely related to the type of the parameter.  Maybe there are 
two different error conditions there & each should have a separate message.

Original issue reported on code.google.com by [email protected] on 9 Jun 2011 at 9:33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant