• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to set the value in DTO....but able to print it on console .....STRANGE ?????

 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
iam unable to set the value in DTO. But iam able to read it using SOP on the console of eclipse. Something Strange is happening.




Problem with PendingPrQty only. Iam to set and get the values for rest of fields but not for PendingPrQty. In DB if i change the value of PendingPrQty to '0' then it does work but if change it to other than '0' then it works. Same with others also. If change their values to '0' then they also do not work. I don't know whats' problem with '0'.
Secondly using System.out.println(), iam able to print '0' but it is not able to set it on DTO and then get from DTO.?


output on console:-
2010.05.18 13:35:40.446,TRACE,[BA0D19A35728E3C2E95FA8C6FD3591AA vk en_US] (jp.co.yamaha_motor.commons.web.aop.CustomizableTraceInterceptorEx,CustomizableTraceInterceptorEx.java,267),Exiting : $Proxy120 : (jp.co.yamaha_motor.eproc.pjcommon.dao.ms.impl.StockDaoImpl@b679e1) : getIrPartsList : return = [jp.co.yamaha_motor.eproc.pjcommon.entity.ms.Stock@408caa[comp_id=jp.co.yamaha_motor.eproc.pjcommon.entity.ms.StockPK@3bc19e[sysOwnerCd=11208,warehouseCd=WH1,partNo=Part 1]]] : time = 16ms
Pending Stock ------------->0.00
Pending stock 0.00
2010.05.18 13:35:40.446,DEBUG,[BA0D19A35728E3C2E95FA8C6FD3591AA vk en_US] (org.hibernate.SQL,SQLStatementLogger.java,111),
select
uom0_.SYS_OWNER_CD as SYS1_40_0_,
uom0_.CODE_KEY1 as CODE2_40_0_,
uom0_.CODE_DATA1 as CODE3_40_0_
from
( select
*
from
CODE_MASTER
where
CODE_ID='7' ) uom0_
where
uom0_.SYS_OWNER_CD=?
and uom0_.CODE_KEY1=?

---------------------------------------

thanks in advance
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't see how this is related to Struts at all. Please describe which technologies you're using for the bits you're actually having an issue with so the question can be moved to an appropriate forum.
reply
    Bookmark Topic Watch Topic
  • New Topic