Perfect! you were right with it. I was doing a mistake building the system with Maven.
Thanks for sharing your wisdom.
Type: Posts; User: olope; Keyword(s):
Perfect! you were right with it. I was doing a mistake building the system with Maven.
Thanks for sharing your wisdom.
Hello!
I'm learning AspectJ, no Spring AOP, just AspectJ and I'm having trouble with Spring MVC + AspectJ.
My aspect looks like this:
public pointcut testingController() : call(*...
I fixed it.
advertisementDao.persist(ad);
sharedEntityManager.clear();
Advertisement ad_detached = advertisementDao.findById(ad.getId());
endTransaction();
Correct.
I don't get LazyInitializationException :( so my test fails.
Hi!
Configuration: Spring + JPA (Hibernate)
I'm trying to test if my mappings are well configured, specifically I want to test LazyLoading.
I've searched on the forum and googled with no...
Appfuse has good examples about testing.
Take a look at appfuse
We were writing at same time Karldmore :P (see my update). My tests is a basic class that extends AbstractTransactionalDataSourceSpringContextTests, setProjectService and one testMethod.
Thanks...
I thought this too, but that problem just appears in testing (application-test.xml), I have in my applicationContext.xml (not test purposes) the following configuration and everything works fine.
...
Yes, using an inner bean the problem goes away. Seems that it is a must use an inner bean in tests to specify the property target but I don't know the reason.
Works:
But for example, for...
Hi, I'm getting an error and I don't know how to solve it. There is only one type of projectService but strack trace that I'm getting says that there are two. I'm having that trouble with test, with...
Thanks for your help Karldmoore :)
Hi!
These days I'm learning Hibernate on my own and now I want to combine with Spring.
I have one class that has some methods that extends HibernateDaoSupport to save/read to/from a local...
Hi kardlmoore, thanks for your reply.
The association works fine, If I save a Project, ProjectInfo is saved into database too.
For example
The blank space between "t" and "est" isn't a...
Thanks for your reply karldmoore.
I've flushed the session after I save the object in test but the problem remains.
Maybe I'm doing the flush in bad place or something? I'm a newbie.
...
Thanks for your reply Amin.
My hbm.xml files are:
Project.hbm.xml
ProjectInfo.hbm.xml
Hi! I'm learning how to write tests using AbstractTransactionalDataSourceSpringContextTests and I'm having some troubles.
I have a database populated with some values.
I have a DAO class...
Hi liteheart.
Take a look to showForm method.
Regards.
I don't understant.
I need to have a bean of type ProjectDAO in my appContext, why I shouldn't have a bean of this type to do the test?
The class ProjectImp implements the ProjectDAO...
Hi!
I've been reading Testing chapter from documentation.
There is a example and I've tried it (with my own code) but I get a error.
ProjectDaoTest
Hi Thanks for your reply mdeinum.
I'm not using transaction management. When I did it without OpenSessionInViewFilter it worked fine, I didn't have a transaction management configuration in my xml...
Hi,
I have a mini webapp with a form that save a Person to database.
Now I want to do it with Hibernate and I have the following code:
It works fine but the problem comes when I...
Thanks for your help and suggestion jeffry.
Now, my JSP looks like below:
org.apache.jasper.JasperException: Invalid property 'personal' of bean class [com.proma.domain.User]: Value of...
First at all I have to say that I've searched in documentation and forums but I can't solve the problem.
I have a class User with one attribute that is an Object.
In my SimpleFormController...
Hi superpuma. I had the same problem and I resolve it getting WebApplicactionContext.
If you want retrieve messages to show them in your jsp files, just put:
Hi appshare, do you have fresh news about it?
Thanks.