Just also saw the lombok NonNull annotation, that's probably not helpful
either.
Maybe better come to the slack channel, you will get more direct help:

https://isis.apache.org/docs/2.0.0-M4/support/slack-channel.html

On Wed, Mar 17, 2021 at 7:43 PM Martin Hesse <mwhe...@gmail.com> wrote:

> I think you need to allow null on the columns as well,  maybe try
> allowsNull = "true" on the @Column annotations.
>
> On Wed, Mar 17, 2021 at 7:01 PM Sofía Canio <canioso...@gmail.com> wrote:
>
>> Hi team,
>> I am currently working with Isis version 1.17
>>
>> I am trying to make the blob type property optional, however it doesn't
>> seem to work as it is still seen as mandatory
>>
>> This is my code
>>
>> @javax.jdo.annotations.Persistent(defaultFetchGroup="false", columns = {
>>             @javax.jdo.annotations.Column(name = "fotos_name"),
>>             @javax.jdo.annotations.Column(name = "fotos_mimetype"),
>>             @javax.jdo.annotations.Column(name = "fotos_bytes", jdbcType
>> = "BLOB", sqlType = "VARBINARY")
>>     })
>>     @Property(optionality = Optionality.OPTIONAL)
>>     @lombok.NonNull
>>     @Getter @Setter
>>     private Blob fotos;
>>
>>
>> https://cdn.discordapp.com/attachments/714621577383116810/821602020943331368/unknown.png
>>
>> What should I do?
>>
>> Thanks
>>
>

Reply via email to