Search:

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

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    719

    Testing Service with JPA

    Hi,

    I have been struggling for a while in which I have a service that interacts with two DAO's. I am using AbstractTransactionalDataSourceSpringContextTests to start with.

    My problem is...
  2. Replies
    13
    Views
    7,372

    How do I access EntityManager inside a DAO?

    Hi,

    I have a DAO that extends JpaDaoSupport and I when I call getJpaTemplate().getEntityManager() it always returns null.

    I have searched the forums and others have run into the issue but no...
  3. Replies
    1
    Views
    727

    I got it! I was using the wrong entity factory. ...

    I got it! I was using the wrong entity factory. It should be: org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
  4. Replies
    1
    Views
    727

    Can't get AbstractJpaTests to work

    I have been struggling with getting a simple test to work with AbstractJpaTests. I keep getting the following error:

    Caused by: org.springframework.beans.TypeMismatchException: Failed to convert...
  5. DependencyInjectionInterceptor Hibernate 3

    I know that DependencyInjectionInterceptor was not included in the 1.2 final release. Is there a version somewhere in cvs that works with Hibernate 3?

    thanks, scott.
  6. Replies
    1
    Views
    933

    Migration Guide

    I looked and didn't see anything so I will ask:

    Is there any migration issues from going from spring 1.1 to 1.2, or does it simply just work? Any dtd changes?

    thanks
  7. Replies
    6
    Views
    1,305

    1. The model object that will fire the events: ...

    1. The model object that will fire the events:


    public class WebLogEntry implements Serializable, ContentItem, Lifecycle, ApplicationContextAware {
    private static final long...
  8. Replies
    6
    Views
    1,305

    I did this the way that irbouho sugested above. ...

    I did this the way that irbouho sugested above. In my service class for example I have a "save" method. Before the save I fire off an "onSave" event and afterwards I fire off a "saved" event.
    ...
  9. Replies
    14
    Views
    3,338

    I've bought Pro Spring and borrowed Spring in...

    I've bought Pro Spring and borrowed Spring in Action from a friend. I feel that Pro Spring goes into more details than Spring In Action. For example Pro Spring Hibernate chapter can easily be...
  10. Replies
    6
    Views
    2,223

    Figured it out!

    Based on this thread http://forum.springframework.com/viewtopic.php?t=301 I got the following classes out of the sandbox:

    org.springframework.beans.factory.support.DependencyInjectionAspectSupport...
  11. ApplicationContext Config

    I am new to Spring, could some one please post the xml config settings for getting the SpringInterceptor up and running?

    thanks in advance.
  12. Replies
    6
    Views
    2,223

    I am using Hibernate, how do I get Hibernate to...

    I am using Hibernate, how do I get Hibernate to get the beans from my ApplicationContext. I attempted to add the following to my application context:

    <bean id="contentItem"...
  13. Replies
    6
    Views
    2,223

    Architecture Question

    I am migrating an older dao-based application to the Spring Framework. I have a pojo mode object called "ContentItem" and one of the properties is called "status". When the status is changed I want...
Results 1 to 13 of 13