views:

20

answers:

1

I used ImprovedNamingStrategy in hibernate, to mapping Java field name to MySQL column name.

ex) birthDate field -> birth_date column, AccountRole class -> account_role table

I'm doing test migrating hibernate code to eclipselink code.

What is the equivalent in EclipseLink to hibernamte's ImprovedNamingStrategy ?

+2  A: 

I don't think there is an equivalent.

Where are you using this? For auto-mapping? You could use a JPA tool (such as Eclipse Dali) that will generate the JPA orm.xml or annotations from an object model, they may give more control over how the data model is generated.

In general using JPA but not the standard naming default will not be portable. If you want a mapping to use something different than the default, you should use the @Column annotation or xml.

James
Thank you for answer. Currently returned to using Hibernate. I'll try EclipseLink later again.
drypot