CREATE TABLE `Author` ( `id` int NOT NULL, `firstName` varchar(255) DEFAULT NULL, `lastName` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`));
public class Author { private Integer id; private String firstname; private String lastname;
public String getFirstname() { return this.firstname; } public Author setFirstname(String firstname) { this.firstname = firstname; return this; }
// omit some code ...
}
<strategy> <matchers> <fields> <field> <expression>^(.)(.+)$</expression> <fieldMember> <transform>AS_IS</transform> <expression>$0</expression> </fieldMember> <fieldSetter> <transform>AS_IS</transform> <expression>set$0</expression> </fieldSetter> <fieldGetter> <transform>AS_IS</transform> <expression>get$0</expression> </fieldGetter> </field> </fields> </matchers> </strategy>
private final String transform(String string, MatcherTransformType transform) { if (transform == null) return string;
switch (transform) { case AS_IS: return string; ...
case CAPITALIZE: return StringUtils.Capitalize(string);
--
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 jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "jOOQ User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jooq-user/Nx23jqRfShA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jooq-user+...@googlegroups.com.