resthub/resthub-spring-stack

Dynamise "packagesToScan" attribute

Closed this issue · 1 comments

Find a solution to dynamise the packagesToScan attribute in resthubContext.xml (used by org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean).

Default value org.resthub generates the exception : java.lang.IllegalArgumentException: Not an managed type: xxx.xxx.model.Sample

Possible solutions :
  • add property in resthubCoreJpaProperties map
  • org.resthub.core.context.persistence.
  • ???

Solution : property in resthubCoreJpaProperties map (see : 6a58817)