warlockza / full-hibernate-plugin-for-struts2

Automatically exported from code.google.com/p/full-hibernate-plugin-for-struts2
0 stars 0 forks source link

Unable to set hibernatePlugin.useSessionObjectInCloseSessionMethod property and hibernatePlugin.searchInsideJars using struts.properties file #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Setting the hibernatePlugin.useSessionObjectInCloseSessionMethod using the 
struts.properties file
2. But all String properties are successfully set using the properties file, 
only the two boolean properties i.e. useSessionObjectInCloseSessionMethod  and 
searchInsideJars are not set due to some reason

What is the expected output? What do you see instead?
The value if set as true in the properties file should be reflected as true, 
but it is not set. 

What version of the product are you using? On what operating system?
As per plugin dependencies and Windows 7 operating system

Please provide any additional information below.
ADDITIONAL INFO :Even tried to debug for the same but same result the setter 
method is not hit for these two properties.
POSSIBLE REASON: The injection is not working for these two properties maybe 
due to the boolean data type, also all the other properties are String type.

Original issue reported on code.google.com by punitpat...@gmail.com on 28 Nov 2012 at 9:55

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I'm dealing with the same problem. The injection is indeed not working. It 
seems to be most likely, it is caused by the Boolean parameter type: 
"setSearchInsideJars(boolean)" never gets invoked, where as Methods with String 
parameter work just fine.

Original comment by alexande...@googlemail.com on 7 Mar 2013 at 7:09