could you send your dataSource definition?
and what is your web container?
Type: Posts; User: mhazer; Keyword(s):
could you send your dataSource definition?
and what is your web container?
could you try to use interface instead of concrete implementation, change your code to the following
BookDAO bookDAO = (BookDAO) factory.getBean("jpaBookDao");
could you change your sql query with following;
AND meaning like :search
and your java code with;
search = "%"+search+"%"
AFAIK if you don't define transaction propagation, service calls run in the same transaction so if AssetService fails AccountService database updates should rolled back.
You can try it by...
take a look to unitils project (http://www.unitils.org/), it really simplifies testing stuff
ok, i got it ... i don't know they support xml based configruation or not ...
Document says;
[quote]
The library works with Hibernate and requires Hibernate Annotations or Entity Manager. For the auditing to work properly, the entities must have immutable unique...
AFAIK JBoss has a project named ENVERS which does same thing as you want.
You can take a look; http://www.jboss.org/files/envers/docs/index.html
Hi everyone,
Our application runs on Weblogic 10.3 with spring (2.5.6)+hibernate (3.2.6.ga)(everthing POJO). But randomly we see following exceptions in the logs;
<Oct 16, 2009 10:08:51 AM...
Hi,
We are using JSF (Java Server Faces), Spring and Hibernate to realize a project. Our problem is reloading a one-to-many lazy relationship, problem is:
We have a class A which has two...
Hi
I have written a simple application consists of Hibernate-Spring and JSF, everthing works fine in the WebContainer. But when i test the services that are in the application with JUNIT, spring...
Thanks for the replies,
Before sending the whole configuration files (because i don't want to make everybody busy with these large and complex files) i want to tell you another view of the issue;...
could you send spring configuration file and hibernate mapping files?
Hi,
Table A has one-to-many realitonship to table B. I configured relationship to use not-lazy loading. If i use
getHibernateTemplate().load(myClass.class,key)
hibernate does not...
Thanx irbouho, problem is solved when i remove cr/lf tag in value tags. But i think spring should throw a different exception in this situation. Am i wrong? Also thanx to cwilkes.
Have nice days....
Hi,
I am trying to write a simple application with spring (which is in Spring in Action book)but i get the following error:
Loading XML bean definitions from class path resource...