I think I see where I did the magic now.

If you look at the main commit where it appeared,

https://github.com/wocommunity/wonder/commit/28ab710470fbff0c82449e6f0be3cf6127f273d6

You can see there's properties to set the jdbc adaptor and column class. You 
possibly need to implement your own custom column to handle a sql array type in 
addition to dates.
________________________________
From: Paul Hoadley <pa...@logicsquad.net>
Sent: Thursday, November 3, 2022 1:59 PM
To: WebObjects-Dev List <webobjects-dev@lists.apple.com>
Cc: Ramsey Gurley <ramsey.gur...@practicemojo.com>
Subject: Re: Custom array column types in EO model

Hi Ramsey,

On 2 Nov 2022, at 17:55, Ramsey Gurley 
<ramsey.gur...@practicemojo.com<mailto:ramsey.gur...@practicemojo.com>> wrote:

I can't say I remember, but if you look in 
adaptorValueByConvertingAttributeValue on EOAttribute in ERAttributeExtension, 
there's a bit at the end of the method where I let the date types slide by to 
support Joda dates. You may have to add support for it there, as that is where 
your exception appears to be emanating from.

Yeah, I got as far as seeing the origin of the exception there. As a quick 
brute-force test, I commented that entire section out, but it didn't help:

2022-11-03 04:54:48.875 INFO  er.transaction.adaptor.Exceptions - Database 
Exception occured: com.webobjects.eoaccess.EOGeneralAdaptorException: Unable to 
create a byte representation for class 
"net.logicsquad.woextensions.eof.PostgresqlTextArray"
2022-11-03 04:54:48.883 ERROR er.extensions.appserver.ERXApplication - Juno 
failed to start.
EOGeneralAdaptorException: Unable to create a byte representation for class 
"net.logicsquad.woextensions.eof.PostgresqlTextArray"

I'm not sure who is complaining here, or why. Is this the JDBC adapter telling 
me that it doesn't know what to do with PostgresqlTextArray, which is a quick 
and dirty implementation of java.sql.Array I copy-pasted off the web?


--
Paul Hoadley
https://logicsquad.net/<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flogicsquad.net%2F&data=05%7C01%7CRamsey.Gurley%40practicemojo.com%7C9393dbe1343a4531423d08dabd584184%7Cde0a512999d34d35a92809047a134775%7C0%7C0%7C638030483998782405%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=a1iDyZGjcXzaXOB6MgXY%2FKPS1HC4N08VKpBzlcbCtgw%3D&reserved=0>
https://www.linkedin.com/company/logic-squad/



________________________________
Confidentiality Notice: This email, including all attachments and replies 
thereto, are covered by the Electronic Communications Privacy Act, 18 U.S.C. 
Sections 2510-2521 and are legally privileged. This information is 
confidential, and intended only for the use of the individuals or entities 
named above. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution or the taking of any action in 
reliance on the contents of this transmitted information is strictly 
prohibited. Please notify us if you have received this transmission in error. 
Thank you.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to