Is there a way to tell JPA/Hibernate to transform column names from camcel case to _'s?

Posted by egervari on Stack Overflow See other posts from Stack Overflow or by egervari
Published on 2010-06-03T06:25:12Z Indexed on 2010/06/03 6:34 UTC
Read the original article Hit count: 240

Filed under:
|
|

Is there a generic way to tell JPA/Hibernate to transform all column names of the form:

emailAddress

to the form:

email_address

?

I'd rather not have to use a @Column annotation for hundreds of columns. I hope someone thought of this ;)

© Stack Overflow or respective owner

Related posts about hibernate

Related posts about column