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.

Reply via email to