openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abe White <>
Subject Re: Mapping
Date Tue, 14 Nov 2006 02:12:35 GMT
> 1. The reverse mapping tool creates an orm.xml but not annotations  
> on generated Java code. Any plans on this?
> 2. I fed an orm.xml to Hibernate 3. It works, but if Hibernate is  
> clever enough to automatically translate between camelCase Java  
> names and underscore-punctuated database names, it's beyond my  
> limited skill. I had to manually insert name elements into the  
> orm.xml for complex table and column definitions to make it  
> function. It's good that openjpa is smarter than that, but on the  
> whole, I think I'd prefer the more complete orm definition - or at  
> least an option for it. For one thing, I'm not sure what the  
> implications are when people start meddling with the generated  
> items and define a situation where there's no simple algorithmic  
> conversion between Java name and the database name.

Are you saying that the orm.xml generated by the reverse mapping tool  
did not have the table and column names set, wherever those names  
differed from the JPA default for the generated class/field name?   
Could you post an example class and the generated orm.xml?
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

View raw message