Skip to content

Commit

Permalink
Order By clause generated incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Apr 10, 2014
1 parent 8666a45 commit 80ca2e6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static String resolveIdGetterName(JavaClass<?> entity)
type = ((Method<?, ?>) member).getReturnType().getQualifiedName();
if (name.startsWith("get"))
{
name = name.substring(2);
name = name.substring(3);
}
}
else if (member instanceof Field)
Expand Down Expand Up @@ -254,7 +254,7 @@ public static String getOrderClause(JavaClass<?> entity, char entityVariable)
if (member instanceof Method)
{
// Getters are expected to obey JavaBean conventions
id = Strings.uncapitalize(memberName.substring(2));
id = Strings.uncapitalize(memberName.substring(3));
}
if (member instanceof Field)
{
Expand Down

0 comments on commit 80ca2e6

Please sign in to comment.