openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: Huge String DB mapping
Date Tue, 27 Jan 2015 19:34:22 GMT
It doesn't appear that there is support to take the column size into
account when determining the type of a String field.

On Tue, Jan 27, 2015 at 1:17 PM, Maxim Solodovnik <solomax666@gmail.com>
wrote:

> Mediumtext for MySQL, and something similar for other databases we
> currently supporting :)
>
> WBR, Maxim
> (from mobile, sorry for the typos)
> On Jan 28, 2015 1:16 AM, "Rick Curtis" <curtisr7@gmail.com> wrote:
>
> > What is the column type that you want OpenJPA to map your String to?
> >
> > On Tue, Jan 27, 2015 at 12:53 PM, Maxim Solodovnik <solomax666@gmail.com
> >
> > wrote:
> >
> > > Hello All,
> > >
> > > I'm trying to map Huge string to the DB:
> > >
> > > public static final int MAX_LOG_SIZE = 1 * 1024 * 1024;
> > > @Lob
> > > @Column(name="ful_message", length = MAX_LOG_SIZE)
> > > private String fullMessage;
> > >
> > > Unfortunately I get column of type TEXT in my MySQL database :( (64K
> max)
> > >
> > > I tried to remove @Lob annotation, no luck
> > >
> > > OpenJPA 2.3.0
> > >
> > > Am I doing something wrong? Or it is bug in OpenJPA?
> > >
> > > Thanks in advance!
> > >
> > >
> > > --
> > > WBR
> > > Maxim aka solomax
> > >
> >
> >
> >
> > --
> > *Rick Curtis*
> >
>



-- 
*Rick Curtis*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message