Hi Christopher,

I'm not aware of anything built in to OpenJPA that generates underscored
names. It seems like we'd want a variation on the
MappingDefaults.removeHungarianNotation property. 

If it would be useful to you would you mind opening a JIRA (not that we
don't have enough already) ? 

-mike


Christopher Gardner wrote:
> 
> Hibernate has a naming strategy,
> org.hibernate.cfg.ImprovedNamingStrategy, that knows how to convert
> camel cased Java class names and property names to underscored table
> and column names and vice versa.  Consequently, if Hibernate can do a
> one-to-one mapping, you don't have to necessarily use the @Table and
> @Column annotations for everything.  I saw that OpenJPA has a
> MappingDefaults interface, which looks to offer something like this.
> Is there an implementation of this naming strategy for OpenJPA
> available?
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Improved-Naming-Strategy-a-la-Hibernate-tp3446575p3481092.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to