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 >
