# Access Internal Dao method bamboo

**URL:** <https://community.developer.atlassian.com/t/access-internal-dao-method-bamboo/18302>\
**Category:** Bamboo Development\
**Tags:** java\
**Created:** [May 9, 2018, 5:18pm UTC](https://community.developer.atlassian.com/t/access-internal-dao-method-bamboo/18302 "2018-05-09T17:18:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saurabh.gupta](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/saurabh.gupta/32/50674_2.png) [@saurabh.gupta](https://community.developer.atlassian.com/u/saurabh.gupta)\
**Post date:** [May 9, 2018, 5:18pm UTC](https://community.developer.atlassian.com/t/access-internal-dao-method-bamboo/18302/1 "2018-05-09T17:18:30Z")

</div>

I am trying to make a plugin, which needs to access an internal dao method. But I am getting error when I declare the class and try to use it.  
Class and method which I am trying to access -

```auto
@Internal
public interface DeploymentProjectDao {
    /**
     * @return list of all DeploymentProjects
     */
    @NotNull
    List<MutableDeploymentProject> getAllDeploymentProjects(int firstResult, int maxResults);
.....

```

Error I am getting -

```auto
[INFO] [talledLocalContainer] 2018-05-09 13:15:03,828 ERROR [ThreadPoolAsyncTaskExecutor::Thread 7] [OsgiPlugin] Unable to start the plugin container for plugin 'com.test.bamboo.app.ddp'
[INFO] [talledLocalContainer] org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.test.bamboo.app.DPDaoImpl]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/orm/hibernate5/support/HibernateDaoSupport.class] cannot be opened because it does not exist

```

Also for any Atlassian Staff, why is this method not put in the service class ?

Edit:  
Can we use hibernate in plugins for Atlassian Bamboo?

---

<div class="post-metadata">

**Author:** ![saurabh.gupta](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/saurabh.gupta/32/50674_2.png) [@saurabh.gupta](https://community.developer.atlassian.com/u/saurabh.gupta)\
**Post date:** [May 15, 2018, 10:17pm UTC](https://community.developer.atlassian.com/t/access-internal-dao-method-bamboo/18302/2 "2018-05-15T22:17:13Z")

</div>

Not useful anymore, can anyone flag this to be deleted or delete it.
