resthub / resthub-spring-stack

RESThub Spring stack
http://resthub.org/spring-stack.html
Other
121 stars 66 forks source link

Dynamise "packagesToScan" attribute #75

Closed jvillanti closed 12 years ago

jvillanti commented 12 years ago

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 :
jvillanti commented 12 years ago

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