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: custom types
Date Thu, 16 Oct 2008 18:40:30 GMT
An aside, is there a standard JPA way to encode 'custom' types, or 
externalizer/factory type setups?


Fernando Padilla wrote:
> Though I do like the ease of use of Externalizer/Factory, I was just 
> wondering if I could register my custom datatypes, so that they will be 
> treated almost like native types, so I have less meta-data to maintain..
> 
> 1)
>     @Persistent
>     @Externalizer("getIdLong")
>     private TeamId ptTeamId;
> 
> 2)
>     @Basic // which ideally might be optional
>     private TeamId ptTeamId;
> 

Mime
View raw message