I'm working with some legacy database code and have some pojos with field names that match column names in the database.
When I generate JPA entities I get the @Column annotation which has the column name which would match the old legacy field names. An example might be:
private Integer member_id;
private String member_name;
The generated artifact for the table might look like this:
@Column(name = "member_id", nullable = false)
private Integer memberId;
@Column(name = "member_name", nullable = false)
private String memberName;
I could map that in XML or I could add annotations for mapping to one of the classes but this seems like a case where a custom converter would be the ticket. Are there any examples or pointers int he right direction?
Thanks
Brad