camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Zapletal (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-3488) Some of JpaTraceEventMessage's attributes require @Lob annotation
Date Tue, 04 Jan 2011 18:37:46 GMT
Some of JpaTraceEventMessage's attributes require @Lob annotation
-----------------------------------------------------------------

                 Key: CAMEL-3488
                 URL: https://issues.apache.org/jira/browse/CAMEL-3488
             Project: Camel
          Issue Type: Improvement
          Components: camel-jpa
         Environment: Camel 2.6-SNAPSHOT, JPA 2, Eclipse Link 2.1, MySQL 5.1
            Reporter: Marco Zapletal
         Attachments: JpaTraceEventMessage-Lob-patch.txt

JpaTraceEventMessage has a bunch of String attributes defined. Applying no annotations on
String attributes of an @Entity result in generated database columns with a constrained length
(e.g., using EclipseLink and MySQL, a String attribute of an @Entity is mapped to a VARCHAR(255)
field).

Several values of JpaTraceEventMessage are probably carrying values larger than 255 characters.
Using JPAs @Lob annotation tackles this problem by generating (C)LOB fields. 

The attached patch defines the @Lob annotation on attributes which are expected to carry such
large values. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message