No byte[] / Byte[] support

2012-04-12
2013-04-29
  • CDB Version 4.6

    CDB_BUILD fails if any Entity contains an array type field.

    In my case I had an Entity where a BLOB was mapped to byte.

    The error is caused by <xsl:variable name="mappedEntity" select="helper:getTypeAnnotation(@name, 'javax.persistence.Entity')"/> in service-impl-jpql.xsl

    a Class not found Exception is thrown.

    I made a quick and dirty fix for my Project by replacing:

    <xsl:variable name="mappedEntity" select="helper:getTypeAnnotation(@name, 'javax.persistence.Entity')"/>

    with:

    <xsl:if test="not(@name = 'byte')">
    <xsl:variable name="mappedEntity" select="helper:getTypeAnnotation(@name, 'javax.persistence.Entity')"/>
    </xsl:if>

    In my eyes there should be an out of the box support for this case.

    Anyways create work guys :-).

    BR

    Martin CIchowski