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 -
@Internal
public interface DeploymentProjectDao {
/**
* @return list of all DeploymentProjects
*/
@NotNull
List<MutableDeploymentProject> getAllDeploymentProjects(int firstResult, int maxResults);
.....
Error I am getting -
[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?