openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Thompson <at2...@columbia.edu>
Subject Re: Mapping CHAR column to String
Date Thu, 11 Nov 2010 17:27:58 GMT
We had a similar issue in sybase.  We ended up creating a custom
dictionary as described in the below thread.

http://openjpa.208410.n2.nabble.com/Trimming-Strings-from-Database-Query-Results-td210893.html


On Thu, 2010-11-11 at 09:14 -0800, Tobias Trelle wrote:
> 
> lwp wrote:
> > 
> > See if this gets you what you want:
> > 
> >      @Column(name = "PROD_VAR", columnDefinition = "CHAR(5)")
> >      private String produktVariante;
> > 
> > 
> 
> Unfortunately, this applies only for schema creation. We'll have to work
> with an exisiting one.
> 
> Cheers,
> Tobias
> 



Mime
View raw message