Re: Custom array column types in EO model
Re: Custom array column types in EO model
- Subject: Re: Custom array column types in EO model
- From: Ramsey Gurley via Webobjects-dev <email@hidden>
- Date: Thu, 3 Nov 2022 06:12:16 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=practicemojo.com; dmarc=pass action=none header.from=practicemojo.com; dkim=pass header.d=practicemojo.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rrWMoJt1W3WabhOzuDXirfss8XMu1u6/dR8nnt1kjhw=; b=cIx1pMltaLElAwz8ctKGDwwTAZxQF7z3PTG3m/yPO3C46zDZfwlWW++i4Hv+0OxS/GCyrNdZSvZDKFCEjbOY5zhhKtNVOKbCzl8PqfKrWJDBzboNUgKhcu1cZXMHeKKzNcj1qNVsmBFarwEGV2Uyz7nckcMgiYy2SRREVcHbUJwRbUzUDafNAcMyRpqa3bx93MoYRH0FYgluUQdp35jXrlfCnOsQGEgyZ78XNK3sAyzcaZk3VsTBiDXYMu3MaQtcVnjm+bm3DfiBPhuMGpR6qDE6IC/IMW9XTk1aVbiQqR43dXq2dXdoglq+AC3XsPkTr8xXtxMBebo8usp51VD8pg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W/HfN+BAteeQr9lkuRytH31+Qt+se6BQTLSmVwZbITaHzedZYdRBHZAyPVpLZoSsORDM/6AueO/Z3DQ74IJDALo3f/R5LZPfKdbgBL7C8psTNENA8j2+7h50G79p5UfWVvB0Kd7TSuaofcuQN991oZ2dgUi6t3XQrhsSogUoSkSWnXncysZdtiMZfAnrhkrRzrsjOm72Dik6QjX6/ohgJkGk7ye/4t1uRFc6UuTGY9ZcWHsNSmTlP9ZmXpY8Fu5D2HYcpQHefhPzucsymgnkTaZXfJC/VTaxNLO8IyUtIxITBCSi5FFYEj9HDEk6BGWQ1Dry6u9+i3IpbgW696u1tg==
- Msip_labels:
- Thread-topic: Custom array column types in EO model
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 <email@hidden>
Sent: Thursday, November 3, 2022 1:59 PM
To: WebObjects-Dev List <email@hidden>
Cc: Ramsey Gurley <email@hidden>
Subject: Re: Custom array column types in EO model
Hi Ramsey,
On 2 Nov 2022, at 17:55, Ramsey Gurley
<email@hidden<mailto:email@hidden>> 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://logicsquad.net/&data=05|01|email@hidden|9393dbe1343a4531423d08dabd584184|de0a512999d34d35a92809047a134775|0|0|638030483998782405|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0=|3000|||&sdata=a1iDyZGjcXzaXOB6MgXY/KPS1HC4N08VKpBzlcbCtgw=&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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden