Closed GoogleCodeExporter closed 9 years ago
Hi boccaromel thanks for the idea and the code. We already discussed and tested
that possibility (using a addPropertyValue also works). But we thought that it
would be unusual and probably everyone that uses the scanner would also use
autowiring.
BTW why would you remove @autowire from MapperFactoryBean? It should be
harmless.
Original comment by eduardo.macarron
on 28 Oct 2010 at 6:59
Recarding the first point, boccaromel. I do agree that we should provide a way
to use MapperScanner when usign more than one datasource.
Please have a look at trunk and send me your opinions.
Original comment by eduardo.macarron
on 29 Oct 2010 at 8:21
Can you create two MapperScannerPostProcessors in Spring, each using a
different SqlSessionFactory/DataSource and pointing to a different classpath
location? I haven't tried this, but if it works, that seems to be the easiest
solution.
Original comment by hpresnall@gmail.com
on 29 Oct 2010 at 11:35
Yes Hunter, it works fine. I have tested it with 2 ds, 2 sessionFactories, 2
scanners and a JtaTransactionManager and works.
Original comment by eduardo.macarron
on 30 Oct 2010 at 6:06
[deleted comment]
[deleted comment]
Original comment by eduardo.macarron
on 5 Apr 2012 at 6:31
Original issue reported on code.google.com by
boccaro...@gmail.com
on 28 Oct 2010 at 5:39Attachments: