Problem with Generic Dao Jpa in dm server 2.0.RC1
I changed it from petclinic, but always error with "Exported service object does not implement the given interface"
Thanks any advice.
Configurations:
Code:
<bean id="abstractDaoTarget"
class="org.springframework.petclinic.repository.jpa.GenericJpaDao"
abstract="true">
<property name="entityManagerFactory" ref="entityManagerFactory"></property>
</bean>
<bean id="abstractDao" class="org.springframework.aop.framework.ProxyFactoryBean"
abstract="true">
</bean>
<bean id="messageDao" parent="abstractDao">
<property name="proxyInterfaces">
<value>org.springframework.petclinic.repository.IMessageDao</value>
</property>
<property name="proxyTargetClass">
<value>true</value>
</property>
<property name="target">
<bean parent="abstractDaoTarget">
<constructor-arg>
<value>org.springframework.petclinic.domain.Message</value>
</constructor-arg>
</bean>
</property>
</bean>