Search:

Type: Posts; User: olope; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    2,052

    Perfect! you were right with it. I was doing a...

    Perfect! you were right with it. I was doing a mistake building the system with Maven.

    Thanks for sharing your wisdom.
  2. Replies
    2
    Views
    2,052

    AspectJ + Spring MVC + Stack size too large

    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(*...
  3. I fixed it. advertisementDao.persist(ad);...

    I fixed it.



    advertisementDao.persist(ad);
    sharedEntityManager.clear();
    Advertisement ad_detached = advertisementDao.findById(ad.getId());
    endTransaction();
  4. Correct. I don't get...

    Correct.

    I don't get LazyInitializationException :( so my test fails.
  5. Spring + JPA + LaztLoading testing with endTransaction()

    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...
  6. Replies
    3
    Views
    1,147

    Appfuse has good examples about testing. Take...

    Appfuse has good examples about testing.

    Take a look at appfuse
  7. Replies
    7
    Views
    1,529

    We were writing at same time Karldmore :P (see my...

    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...
  8. Replies
    7
    Views
    1,529

    I thought this too, but that problem just appears...

    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.
    ...
  9. Replies
    7
    Views
    1,529

    Yes, using an inner bean the problem goes away....

    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...
  10. Replies
    7
    Views
    1,529

    More problems with testing.

    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...
  11. Replies
    3
    Views
    808

    Thanks for your help Karldmoore :)

    Thanks for your help Karldmoore :)
  12. Replies
    3
    Views
    808

    TransactionManager and Hibernate session

    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...
  13. Hi kardlmoore, thanks for your reply. The...

    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...
  14. Thanks for your reply karldmoore. I've flushed...

    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.
    ...
  15. Thanks for your reply Amin. My hbm.xml files...

    Thanks for your reply Amin.

    My hbm.xml files are:

    Project.hbm.xml


    ProjectInfo.hbm.xml
  16. Testing with AbstractTransactionalDataSourceSpringContextTests problems

    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...
  17. Hi liteheart. Take a look to showForm method. ...

    Hi liteheart.

    Take a look to showForm method.

    Regards.
  18. I don't understant. I need to have a bean...

    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...
  19. Testing with AbstractTransactionalDataSourceSpringContextTests

    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
  20. Hi Thanks for your reply mdeinum. I'm not...

    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...
  21. OpenSessionInViewFilter + change FlushMode value

    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...
  22. Thread: Newbie + binding

    by olope
    Replies
    3
    Views
    861

    Thanks for your help and suggestion jeffry. ...

    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...
  23. Thread: Newbie + binding

    by olope
    Replies
    3
    Views
    861

    Newbie + binding

    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...
  24. Hi superpuma. I had the same problem and I...

    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:
  25. Replies
    7
    Views
    7,282

    Hi appshare, do you have fresh news about it? ...

    Hi appshare, do you have fresh news about it?

    Thanks.
Results 1 to 25 of 44
Page 1 of 2 1 2