PropertyDescriptor contains the logic to determine the correct setter according to the return type of the getter, so it should not be a problem. What is the exception? stacktrace?
john mcnally Filippos Slavik wrote: > > At 05:49 �� 2/1/2002 -0800, you wrote: > >See the archives. A reasonable though not ideal fix is in cvs. And the > >problem is not with PropertyDescriptor, I am pretty sure it contains the > >correct logic. The bug occurs in BeanInfo or Introspector. > > Can you bee a bit more precise ? I 'm using Turbine 2 CVS HEAD (should't be > the fix there ?) > > I got the exception in the following line: > > pd = new PropertyDescriptor(propName, Class.forName(className)); > > in the ::getFieldSetter of TurbineIntakeService.. > > >john mcnally > > Best Regards > Filippos Slavik > > >Filippos Slavik wrote: > > > > > > Dear all I have the following problem with TurbineIntakeService (2.x, > > > version 1.3) > > > > > > I have the following table column defined in my database xml file: > > > > > > <column javaName="DiskPlatformID" name="DIGITAL_LARGE_DISKPLATFORM_ID" > > > type="INTEGER"/> > > > > > > Torque (the one distirbuted with TDK2.1) generates in the Base OM object > > > one getter: > > > > > > public NumberKey getDiskPlatformID() > > > > > > and two setters: > > > > > > public void setDiskPlatformID(NumberKey v ) throws Exception > > > public void setDiskPlatformID(String v ) throws Exception > > > > > > So far so good. My inputs.xml contains an entry to handle the above field: > > > > > > <field name="DiskPlatformID" key="diskplatformid" type="NumberKey" > > > mapToProperty="DiskPlatformID"/> > > > > > > The problem is that TurbineIntakeService fails to select the correct (?) > > > setter for the concrete field/property. From the exception thrown the > > > reason is obvious. The IntakseService uses the > > > java.bean.PropertyDescriptor class to get the setter and getter for the > > > property, but it fails since there are two setters for the property with > > > different parameter types. > > > > > > I'm stuck :( Due to this exception I'm not able to map my "form data" to > > > the appropriate OM instances and store them to the database backend. Once > > > again let me state that I'm using turbine 2.x CVS HEAD (TDK2.1 for the > > > generation of OM sources) - JRE 1.2.2 (Visual Age 4.0 for Java)... > > > > > > Any help ? :) > > > > > > Thanks :) > > > Slavikos > > > > > > ################################################################ > > > Filippos Slavik > > > FORTHnet R&D, Heraklion, Greece > > > e-mail : [EMAIL PROTECTED] > > > phone : (+3) 081 391230 > > > ################################################################ > > > > > > "The software said 'runs on Win95 or better,' so I installed it > > > on Linux..." > > > > > > -- > > > To unsubscribe, > > e-mail: <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > >-- > >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > ################################################################ > Filippos Slavik > FORTHnet R&D, Heraklion, Greece > e-mail : [EMAIL PROTECTED] > phone : (+3) 081 391230 > ################################################################ > > "The software said 'runs on Win95 or better,' so I installed it > on Linux..." > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
