Hi Denis,

That's weird that Eclipse generates methods like this. From how I
understand the ancient JavaBeans specs / naming conventions, the property
is camelCased as a property name, but PascalCased as a name "suffix" for
the getter and setter. It might look a bit weird here with the n_ prefix,
but imagine a class Person:

class Person {
    String firstName;
    String lastName;

    public void setFirstName(String firstName);
    public void setLastName(String lastName);
    // ...
}


I think that's correct, no?

In any case, if you don't agree with jOOQ's default naming patterns, you
can always override them via generator strategies:

- programmatic:
http://www.jooq.org/doc/latest/manual/code-generation/codegen-generatorstrategy
- configurative:
http://www.jooq.org/doc/latest/manual/code-generation/codegen-matcherstrategy

Hope this helps,
Lukas

2016-06-15 11:46 GMT+01:00 Denis Miorandi <[email protected]>:

> I'm using _ naming notation in postgress.
> When I've got and _ on 2nd place I've got an unexpected name.
>
> DB FIELD NAME:
> *n_civ_residenza*
>
> JOOQ JAVA METHODS (seems wrong to me the uppercased 'N')
> *nCivResidenza*
> *getNCivResidenza*
> *setNCivResidenza*
>
> JAVA ECLIPSE GENERATED METHODS (seems right to me)
> *nCivResidenza*
> *getnCivResidenza*
> *setnCivResidenza*
>
> any suggestions? Is it by design or it's a bug?
>
>
> Tks
> Denis
>
> --
> You received this message because you are subscribed to the Google Groups
> "jOOQ User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to