Java code
@Repository
public class BaseHibernateDao extends HibernateDaoSupport {
}
SERVICE
Java code
Type: Posts; User: ilysony; Keyword(s):
Java code
@Repository
public class BaseHibernateDao extends HibernateDaoSupport {
}
SERVICE
Java code
hi everyone,
i have encounting a problems on config spring2.5.6 hibernate3.3 proxool-0.9.1.jar jpa,
i only use jpa to instead of *.hbm.xml to mapping entities.
but i could see any...
datasource
i have change above config to
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory"...
hi dejanp
thanks for your reply,
i ' m using cglib which don't need interface implements.
cglib base on no-interface dynamic proxy dalegate database's transaction
i have the same problems on @Transactional
http://forum.springframework.org/showthread.php?t=65168
thanks for your guide
i have encounting the same problems
but i use @transactional on service
008-12-20 21:26:00 [ http-8080-1:51390 ] - [ INFO ] Created new session-scoped cache in session 089C12682F8BEFFC97EBD6917245AFFE at key: __oscache_cache
2008-12-20 21:26:00 [ http-8080-1:51390 ]...
i use @Transactional in service layer
but it did't work (rollback) when i insert a data into database and throw a exception
DAO中
@Repository
public class TestDao extends BaseHibernateDao...
Hi,everyone
i want to implements this kind of function base on web project
1. only one session permit
2. when a user logout ,he can't visit the page which need login
3. its a small sns...
Dear Marten Deinum
,Thanks for your reply,and i 'm really thanks for your advice~! ^_^
I have got green in junit ,thanks a lot
@RunWith(SpringJUnit4ClassRunner.class)...
Marten Deinum
Thanks a lot ,'m using ExtJs/Wap As View layout,
my boss let me to write the controller test via Mock and JUnit,but i dont know how to
set the request to that kind of...
i don't know how to set the parameter and how to got the
JSONMap map = new JSONMap();
map.put("totalProperty", 2000);
map.put("list", list);
map.flush(response);
and to write Assert...
Hi Everyone,
How To Test Controller(MVC) via EasyMock And JUnit?
Here is my code
@Controller
public class AdminFr extends AdminController {
AnnotationSessionFactoryBean
you could try *.hbm.xml first ,when you are familiar with *.hbm.xml,then you could learn
how to use annotation to replace the xml files
i'm learnning struts2+spring2.5.5 +hibernate3.3
+log4j+proxool
i'm also a newbie to spring,i think that you could do some simple app first,
the above files are to complex to a newbie
do you have org/slf4j/impl/StaticLoggerBinder?
I just want to test spring via Spring-test.jar,and JUnit
but when i run this toy program,it does't work at all,and
got the exception as below,
who know this?and how to solve it? thanks...
additional : using MySql DataBase
Dear all,
i 'm a beginner of learnning Springframework....
i want to create a project very simple guestbook Project
use below skill
1.Spring2.5 + Hibernate + Struts2
and the default Scope is singleton ,in this scope ,all reference share this object,
if your want to all reference got different object,
your could write as below,your also could define the...
sure did .
Dao d = (DAO)new DAOImpl();
u might use
DAO d = (DAO)ac.getBean("daoImpl");
i just wirte
@Component("daoImpl")
public class DAOImpl implements Dao{