
full-hibernate-plugin-for-struts2 - issue #38
Unable to set hibernatePlugin.useSessionObjectInCloseSessionMethod property and hibernatePlugin.searchInsideJars using struts.properties file
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.
Comment #1
Posted on Mar 7, 2013 by Grumpy LionComment deleted
Comment #2
Posted on Mar 7, 2013 by Grumpy LionI'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.
Status: New
Labels:
Type-Defect
Priority-Medium