openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim Solodovnik <solomax...@gmail.com>
Subject Re: Huge String DB mapping
Date Mon, 02 Feb 2015 18:20:27 GMT
Thanks for helping
The problem was in JAVA version and it seems build without tests not working

I have created the issue [1] and attached the patch for 2.3.x

[1] https://issues.apache.org/jira/browse/OPENJPA-2567

On Sun, Feb 1, 2015 at 12:46 AM, Rick Curtis <curtisr7@gmail.com> wrote:

> Sorry about the slow reply.I'm fairly certain the problem is due to you
> skipping to install the tests. To compile openjpa-persistence-locking it
> requires org.apache.openjpa:openjpa-persistence-jdbc:jar:tests, but you
> skipped installing that thing. Try to run mvn install ... it'll take a long
> time, but that should do the trick.
>
> Thanks,
> Rick
>
> On Thu, Jan 29, 2015 at 1:14 AM, Maxim Solodovnik <solomax666@gmail.com>
> wrote:
>
> > Hello Rick,
> >
> > I tried to get and build sources to contribute but failed :(
> > can you help me to resolve build errors? Or I need to write to dev@
> list?
> >
> > tried to build both trunk and branches/2.3.x
> >
> > mvn clean install -Dmaven.test.skip=true -DskipTests
> >
> > [ERROR] Failed to execute goal on project openjpa-persistence-locking:
> > Could not resolve dependencies for project
> > org.apache.openjpa:openjpa-persistence-locking:jar:2.3.1-SNAPSHOT:
> Failure
> > to find
> > org.apache.openjpa:openjpa-persistence-jdbc:jar:tests:2.3.1-SNAPSHOT in
> > http://repository.apache.org/snapshots was cached in the local
> repository,
> > resolution will not be reattempted until the update interval of
> > apache.snapshots has elapsed or updates are forced -> [Help 1]
> >
> > mvn -version
> > Apache Maven 3.2.3
> >
> > java -version
> > java version "1.7.0_72"
> > Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
> >
> > Thanks in advance
> >
> > On Wed, Jan 28, 2015 at 1:52 AM, Rick Curtis <curtisr7@gmail.com> wrote:
> >
> > > > Are there any plans to add it?
> > > No.... that being said this is open source and all of the source is
> > > available[1].
> > >
> > >  I'll note that the MySQL dictionary has similar support for different
> > blob
> > > types[2], but not for String types. If you wanted to make a change for
> > all
> > > supported databases that would be a larger effort that just adding
> > support
> > > for MySQL.
> > >
> > > Good luck!
> > >
> > > Thanks,
> > > Rick
> > >
> > > [1] http://openjpa.apache.org/source-code.html
> > > [2] org.apache.openjpa.jdbc.sql.MySQLDictionary
> > >
> > >
> >
> <eclipse-javadoc:%E2%98%82=openjpa-jdbc/src%5C/main%5C/java%3Corg.apache.openjpa.jdbc.sql%7BMySQLDictionary.java%E2%98%83MySQLDictionary>
> > > .getTypeName
> > >
> > > On Tue, Jan 27, 2015 at 1:44 PM, Maxim Solodovnik <
> solomax666@gmail.com>
> > > wrote:
> > >
> > > > Are there any plans to add it? Or maybe some other way like:
> > > > @Lob(type=MEDIUM)
> > > >
> > > > WBR, Maxim
> > > > (from mobile, sorry for the typos)
> > > > On Jan 28, 2015 1:37 AM, "Rick Curtis" <curtisr7@gmail.com> wrote:
> > > >
> > > > > 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*
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > *Rick Curtis*
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>
>
>
> --
> *Rick Curtis*
>



-- 
WBR
Maxim aka solomax

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