Announcement Announcement Module
Collapse
No announcement yet.
Configuration of multimodule project with AnnotationSessionFactoryBean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Configuration of multimodule project with AnnotationSessionFactoryBean

    I have a multimodule Maven project whit Spring and Hibernate, my Hibernate configuration is like:
    Code:
    <bean id="sessionFactory" 
        class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
    		<property name="hibernateProperties">
    			<props>
                                               ...
    			</props>
    		</property>
    		<property name="dataSource">
    			<ref bean="dataSource" />
    		</property>
    		<property name="annotatedClasses">
    			<list>
                                              ...
    			</list>
        	</property>
    </bean>
    Recently some of our entities should have moved to an other subproject depending on the original subproject with the entities. I would like to split my configuration file in order to use the former SpringJUnit4ClassRunner tests. Is it possible?

  • #2
    I would like to split my configuration file in order to use the former SpringJUnit4ClassRunner tests. Is it possible?
    I think yes, for the master project you could create a jar file or with maven install it in your repository and for the child project do reference like a dependency the master project

    Let us know your advance

    Comment

    Working...
    X