Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 374646 - SQL: BeanArrayHolder do not support FormData
Summary: SQL: BeanArrayHolder do not support FormData
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-19 09:00 EDT by Jeremie Bresson CLA
Modified: 2021-08-19 11:28 EDT (History)
2 users (show)

See Also:
ivan.motsch: indigo+
ivan.motsch: juno+


Attachments
Patch for bug 374646 (1.82 KB, patch)
2012-03-19 09:03 EDT, Jeremie Bresson CLA
ivan.motsch: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremie Bresson CLA 2012-03-19 09:00:12 EDT
Build Identifier: 

As pointed in the Forum discussion [1], it is not possible to use a FormData with the BeanArrayHolder. 

Exception is thrown at
- org.eclipse.scout.commons.TypeCastUtility.castValue(TypeCastUtility.java:64)
- org.eclipse.scout.rt.server.services.common.jdbc.internal.exec.AbstractBeanPropertyOutput.finishBatch(AbstractBeanPropertyOutput.java:107) 
==> code 3 (no to-mapping)

See example and full Stack trace in the forum discussion.

At the end of the batch, AbstractBeanPropertyOutput should invoke formData.getXxxxx().setValue(Integer) where Xxxxx is the AbstractValueFieldData<Type>. 

[1] http://www.eclipse.org/forums/index.php/mv/msg/310526/821837/#msg_821837


Reproducible: Always
Comment 1 Jeremie Bresson CLA 2012-03-19 09:03:22 EDT
Created attachment 212851 [details]
Patch for bug 374646

Patch for this bug:

Modification of AbstractBeanPropertyOutput in org.eclipse.scout.rt.server
Comment 2 Ivan Motsch CLA 2012-03-20 03:47:10 EDT
Applied patch without changes, thanks a lot!
Comment 3 Ivan Motsch CLA 2012-03-20 03:56:54 EDT
added internal scout james unit test 
org.eclipse.scout.james.server.tests.jdbc.SelectIntoArrayTest
Comment 4 Matthias Zimmermann CLA 2013-07-08 17:36:43 EDT
Bugfixes shipped on Scout 3.7 branch
Comment 5 Jeremie Bresson CLA 2013-07-09 05:04:25 EDT
(In reply to comment #3)
> added internal scout james unit test 
> org.eclipse.scout.james.server.tests.jdbc.SelectIntoArrayTest

Test is now at org.eclipse.scout.commons.holders.SelectIntoArrayTest in the org.eclipse.scout.rt.server.test fragment.