openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Sutter <kwsut...@gmail.com>
Subject Re: Java enum column incompatibility warning
Date Thu, 22 May 2014 20:09:29 GMT
Well, if you don't have access or the means to update this varchar length,
then you probably have to ignore it...  :-)  This is a warning to indicate
a mismatch.  I suppose you can ignore it, but then you have a chance of
truncated values.  Are the enum values pre-defined like the column size?
Or, can you maybe abbreviate the enum values to make them fit the column
size?  It's really up to you whether these warnings are safe to ignore or
not.

Kevin


On Thu, May 22, 2014 at 2:10 PM, Jason Reilly <jdr0887@renci.org> wrote:

> Sorry....I am using OpenJPA 2.3.0
>
>
> On 05/22/2014 03:09 PM, Jason Reilly wrote:
>
>> Hi all,
>>
>> I am getting a warning that the column that an Enum is mapped to (as a
>> string) is incompatible with the column in the schema definition. Looks
>> like the expected column size is the length of the longest Enum value.  As
>> it is a warning and I don't easily have access to change the varchar
>> length, can this be safely ignored?
>>
>> Thanks,
>> Jason
>>
>>
>>
>

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