openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fernando Padilla <f...@alum.mit.edu>
Subject Re: Default Table/Column Naming conventions; are they configurable?
Date Mon, 20 Oct 2008 21:53:05 GMT
um.

So i just tried to do that.  My first attempt, I was just trying to do 
logging while delegate to MappingDefaultsImpl, by both wrapping and/or 
extending.  But I keep getting null pointer exceptions.

What do you suggest?  How would I get started in creating my own 
MappingDefaults?



Pinaki Poddar wrote:
> Hi,
> 
> Fernando Padilla wrote:
>> So, is there any way that I can plugin a class to determine the default 
>> TABLE/COLUMN names?
>>
>   Start looking from
>    interface org.apache.openjpa.jdbc.meta.MappingDefaults
>  and its 'JPA'-specifc implementation
>    org.apache.openjpa.jdbc.meta.ClassMapping.PersistenceMappingDefaults
> 
>   It is possible to plug-in a custom implementation via:
>    <property name="openjpa.jdbc.MappingDefaults"
> value="com.acme.MyMappingDefaults"/>
> 
>   For further details:
> [1]
> http://openjpa.apache.org/builds/latest/docs/manual/manual.html#openjpa.jdbc.MappingDefaults
> 
> 

Mime
View raw message