Created
April 30, 2013 05:14
-
-
Save debop/5486713 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static final String MONGO_OGM_DAO_CLASS_NAME = MongoOgmDao.class.getName(); | |
| @Override | |
| @Bean | |
| @Scope("prototype") | |
| public MongoOgmDao hibernateOgmDao() { | |
| MongoOgmDao dao = Local.get(MONGO_OGM_DAO_CLASS_NAME, MongoOgmDao.class); | |
| if (dao == null) { | |
| dao = new MongoOgmDao(sessionFactory()); | |
| Local.put(MONGO_OGM_DAO_CLASS_NAME, dao); | |
| if (log.isDebugEnabled()) | |
| log.debug("현 스레드에서 새로운 MongoOgmDao 인스턴스를 생성했습니다. ThreadId=[{}]", Thread.currentThread().getId()); | |
| } | |
| return dao; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment