Thanks!
It works now
Type: Posts; User: jackyliuq; Keyword(s):
Thanks!
It works now
if I want to access the current session in my hibernate interceptor , what shall I do?
it's spring 1.2.1 + Hibernate 3.05
When I setup a hibernate interceptor for session factory in spring configuration, How can I get session from session factory in my interceptor?
Thks
Thanks, guys!
That's what I want, it's pattern for security, so I want to use "&" in Spring Context.
There's a attribute in my class called
String pattern;
I want to config it in Spring application context as below:
<bean id="..." class="...">
<property name="pattern"><value>( A & B ) |...
there should not "/" at the begining of your filepath, and question is make sure plugin/framework/artware/framework/model/component/Action.hbm.xml
is under classpath of your project,
You'd better use the callback method of hibernate in spring, and initalize all stuffs in the method, as after you invoke getHibernateTemplate(), the session will be closed
you can use like that:
<entry>
<key><ref bean="myKeyBean"/></key>
<ref bean="myValueBean"/>
</entry>
or shortcut
<entry key-ref="myKeyBean" value-ref="myValueBean"/>
I want to get a Class actually, I use .Net guy's way to do it,
Alarmnummer, your way is to use a inner class in map to get the instance of Demo, right?
I want do like that:
package ca.gov;
Class Demo{};
.....
<property name="dynamicClass">
<map>
<entry key="demo">
When I try like :
parameter is String
........
<constructor-arg>
<value>invoiceListAction?method=%22list%22</value>
</constructor-arg>
........
then user URLDecoder.decode(url);
It works...
When I set up value like below:
.............
<constructor-arg>
<value>invoiceListAction?method="list"</value>
</constructor-arg>
...............
It doesn't work, only get...