rzo1 commented on PR #220:
URL: https://github.com/apache/openjpa/pull/220#issuecomment-6347816621

   @ilgrosso thanks, good to see it gets further now. The `jsonb(255)` is a 
separate problem. OpenJPA appends the column length to a column definition 
unless the dictionary knows the type has a fixed size, and `JSONB` is not in 
that list for PostgreSQL (neither is `JSON` for MySQL and MariaDB). Syncope 3.x 
did not hit this because its mapping also had `<lob/>`, which removes the 
length.
   
   I opened [OPENJPA-3018](https://issues.apache.org/jira/browse/OPENJPA-3018) 
to fix it in the dictionaries. Until then you can work around it with:
   
   ```
   openjpa.jdbc.DBDictionary=postgres(FixedSizeTypeNames=JSONB)
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to