Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9939

Text contributor for @Lob String fields

    XMLWordPrintable

Details

    • Feature Request
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • None
    • 7.63.0.Final
    • None
    • None

    Description

      At present hiberante is mapping incorrectly text fields doing this:

      It creates a CLOB and assign the oid create to the text columns.
      This causes several problems described in this https://hibernate.atlassian.net/browse/HHH-14211

      And this is the root cause we have this scripts
      https://github.com/kiegroup/jbpm/blob/main/jbpm-db-scripts/src/main/resources/db/ddl-scripts/postgresql/postgresql-jbpm-lo-trigger-clob.sql

      that is should not be needed as text field should store the data.

      This contributor should fix the problem as hibernate is walking another path regarding how to fix the mapping (they will move the mapping to oid as they are creating a clob and seems the spec requires to turn @Lob fields into clob and not text)

          public class TextContributorType extends StandardBasicTypeTemplate<String> {
      
              private static final long serialVersionUID = 1619875355308645967L;
      
              public TextContributorType() {
                  super(LongVarcharTypeDescriptor.INSTANCE, StringTypeDescriptor.INSTANCE, StandardBasicTypes.MATERIALIZED_CLOB.getName());
              }
      
          }
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-egonzale Enrique Gonzalez Martinez
              rhn-support-egonzale Enrique Gonzalez Martinez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: