mnimer / dphibernate

Automatically exported from code.google.com/p/dphibernate
0 stars 0 forks source link

method in VO that's not a getter/setter #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Created a hibernate VO with a transient method that doesn't follow
getter/setter method naming convention (e.g. public boolean isNewCustomer() )
2. Flex gets this vo and updates some information.
3. Flex tries to save this updated vo by calling service method

What is the expected output? What do you see instead?
I expected this method won't be invoked by readBean(Object obj) method in
HibernateDeserializer class.

What version of the product are you using? On what operating system?
1.0.9 on WindowsXP

Please provide any additional information below.
pd.getWriteMethod() returns null because there is no matching setter method
for this (isNewCustomer()) and null pointer validation is missing for statement

pd.getWriteMethod().invoke(obj, newVal);

Original issue reported on code.google.com by kgajula...@gmail.com on 12 Mar 2009 at 2:41

GoogleCodeExporter commented 9 years ago
1.0.17 still ??

Original comment by liuy...@gmail.com on 21 Feb 2010 at 4:55

GoogleCodeExporter commented 9 years ago
Yes. It was an issue in 1.0.17 as well.

Original comment by kgajula...@gmail.com on 21 Feb 2010 at 8:29

GoogleCodeExporter commented 9 years ago
Fixed in 2.0RC5

Original comment by martypit...@gtempaccount.com on 15 Mar 2011 at 3:31