<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Cannot create tables using Spring boot in HANA HDI container without CDS artifact in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cannot-create-tables-using-spring-boot-in-hana-hdi-container-without-cds/qaa-p/761964#M221235</link>
    <description>&lt;P&gt;yes  @&lt;A href="https://answers.sap.com/users/411977/boudhayan-dev.html"&gt;Boudhayan Dev&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I can see that in cf int, the schema plan is available.&lt;/P&gt;</description>
    <pubDate>Sun, 10 Mar 2019 09:31:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-03-10T09:31:04Z</dc:date>
    <item>
      <title>Cannot create tables using Spring boot in HANA HDI container without CDS artifact</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-create-tables-using-spring-boot-in-hana-hdi-container-without-cds/qaq-p/761958</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I have a basic spring boot application comprising of a Entity (called Topic) and a service that allows CRUD operations on it. I had deployed the application on SAP Cloud Platform - Neo and binded it with the Hana Classic Schema. Hibernate was able to execute DML statements i.e was successful in generating the table in schema.&lt;/P&gt;
  &lt;P&gt;Now, I tried deploying the same application to Cloud Foundry using HANA hdi containers. The application got deployed but the tables were not created . I checked the logs and it shows me that create operation could not be successful because of insufficient privileges. I do not have any CDS artifact in my project. Is that the reason ? Can we not create database objects via JPA/Hibernate without depending on hdb artifacts for HANA hdi containers ?&lt;/P&gt;
  &lt;P&gt;Attaching the code and logs below -&lt;/P&gt;
  &lt;P&gt;1. The logs show the following error -&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/289242-2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/289243-3.png" /&gt;&lt;/P&gt;
  &lt;P&gt;1. application.properties - &lt;STRONG&gt;springdb &lt;/STRONG&gt;is the name of the hana instance and &lt;STRONG&gt;springdatabase &lt;/STRONG&gt;is the spring boot application&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;spring.jpa.hibernate.ddl-auto=update
vcap.services.name=springdb
spring.datasource.driver-class-name=${vcap.services.${vcap.services.name}.credentials.driver}
spring.datasource.url=${vcap.services.${vcap.services.name}.credentials.url}
spring.datasource.username=${vcap.services.${vcap.services.name}.credentials.user}
spring.datasource.password=${vcap.services.${vcap.services.name}.credentials.password}&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;HANA Service - &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/289241-1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;2. The main class -&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;@SpringBootApplication(exclude = {org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration.class})
@ComponentScan("io.javabrains.*")
@EnableJpaRepositories(basePackages = {"io.javabrains.*"})
@EntityScan("io.javabrains.*")
public class SpringDatabaseApplication {
public static void main(String[] args) {
SpringApplication.run(SpringDatabaseApplication.class, args);
}
}&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;3. The pom. xml -&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 &lt;A href="http://maven.apache.org/xsd/maven-4.0.0.xsd&amp;quot;&amp;gt;" target="test_blank"&gt;http://maven.apache.org/xsd/maven-4.0.0.xsd"&amp;gt;&lt;/A&gt;;
&amp;lt;modelVersion&amp;gt;4.0.0&amp;lt;/modelVersion&amp;gt;
&amp;lt;parent&amp;gt;
&amp;lt;groupId&amp;gt;org.springframework.boot&amp;lt;/groupId&amp;gt;
&amp;lt;artifactId&amp;gt;spring-boot-starter-parent&amp;lt;/artifactId&amp;gt;
&amp;lt;version&amp;gt;2.1.3.RELEASE&amp;lt;/version&amp;gt;
&amp;lt;relativePath/&amp;gt; &amp;lt;!-- lookup parent from repository --&amp;gt;
&amp;lt;/parent&amp;gt;
&amp;lt;groupId&amp;gt;io.javabrains&amp;lt;/groupId&amp;gt;
&amp;lt;artifactId&amp;gt;SpringDatabase&amp;lt;/artifactId&amp;gt;
&amp;lt;version&amp;gt;0.0.1-SNAPSHOT&amp;lt;/version&amp;gt;
&amp;lt;packaging&amp;gt;war&amp;lt;/packaging&amp;gt;
&amp;lt;name&amp;gt;SpringDatabase&amp;lt;/name&amp;gt;
&amp;lt;description&amp;gt;Demo project for Spring Boot JPA&amp;lt;/description&amp;gt;
&amp;lt;properties&amp;gt;

&amp;lt;java.version&amp;gt;1.8&amp;lt;/java.version&amp;gt;
&amp;lt;maven.test.skip&amp;gt;true&amp;lt;/maven.test.skip&amp;gt;
&amp;lt;project.build.sourceEncoding&amp;gt;UTF-8&amp;lt;/project.build.sourceEncoding&amp;gt;
   &amp;lt;project.reporting.outputEncoding&amp;gt;UTF-8&amp;lt;/project.reporting.outputEncoding&amp;gt;
&amp;lt;/properties&amp;gt;
&amp;lt;dependencies&amp;gt;
&amp;lt;dependency&amp;gt;
&amp;lt;groupId&amp;gt;org.springframework.boot&amp;lt;/groupId&amp;gt;
&amp;lt;artifactId&amp;gt;spring-boot-starter-data-jpa&amp;lt;/artifactId&amp;gt;

&amp;lt;exclusions&amp;gt;
                &amp;lt;exclusion&amp;gt;
                    &amp;lt;artifactId&amp;gt;logback-classic&amp;lt;/artifactId&amp;gt;
                    &amp;lt;groupId&amp;gt;ch.qos.logback&amp;lt;/groupId&amp;gt;
                &amp;lt;/exclusion&amp;gt;
                &amp;lt;exclusion&amp;gt;
                    &amp;lt;groupId&amp;gt;org.slf4j&amp;lt;/groupId&amp;gt;
                    &amp;lt;artifactId&amp;gt;slf4j-api&amp;lt;/artifactId&amp;gt;
                &amp;lt;/exclusion&amp;gt;
            &amp;lt;/exclusions&amp;gt;
&amp;lt;/dependency&amp;gt;

&amp;lt;dependency&amp;gt;
&amp;lt;groupId&amp;gt;org.springframework.boot&amp;lt;/groupId&amp;gt;
&amp;lt;artifactId&amp;gt;spring-boot-starter-web&amp;lt;/artifactId&amp;gt;

 &amp;lt;exclusions&amp;gt;
                &amp;lt;exclusion&amp;gt;
                    &amp;lt;groupId&amp;gt;org.springframework.boot&amp;lt;/groupId&amp;gt;
                    &amp;lt;artifactId&amp;gt;spring-boot-starter-tomcat&amp;lt;/artifactId&amp;gt;
                &amp;lt;/exclusion&amp;gt;
                &amp;lt;exclusion&amp;gt;
                    &amp;lt;groupId&amp;gt;org.apache.tomcat.embed&amp;lt;/groupId&amp;gt;
                    &amp;lt;artifactId&amp;gt;tomcat-embed-el&amp;lt;/artifactId&amp;gt;
                &amp;lt;/exclusion&amp;gt;
                &amp;lt;exclusion&amp;gt;
                    &amp;lt;artifactId&amp;gt;logback-classic&amp;lt;/artifactId&amp;gt;
                    &amp;lt;groupId&amp;gt;ch.qos.logback&amp;lt;/groupId&amp;gt;
                &amp;lt;/exclusion&amp;gt;
                &amp;lt;exclusion&amp;gt;
                    &amp;lt;artifactId&amp;gt;slf4j-api&amp;lt;/artifactId&amp;gt;
                    &amp;lt;groupId&amp;gt;org.slf4j&amp;lt;/groupId&amp;gt;
                &amp;lt;/exclusion&amp;gt;
            &amp;lt;/exclusions&amp;gt;
&amp;lt;/dependency&amp;gt;
&amp;lt;dependency&amp;gt;
    &amp;lt;groupId&amp;gt;org.springframework.boot&amp;lt;/groupId&amp;gt;
    &amp;lt;artifactId&amp;gt;spring-boot-starter-logging&amp;lt;/artifactId&amp;gt;
    &amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;
&amp;lt;/dependency&amp;gt;
 &amp;lt;!--  &amp;lt;dependency&amp;gt;
&amp;lt;groupId&amp;gt;com.sap.cloud&amp;lt;/groupId&amp;gt;
&amp;lt;artifactId&amp;gt;neo-java-web-api&amp;lt;/artifactId&amp;gt;
&amp;lt;version&amp;gt;3.34.3&amp;lt;/version&amp;gt;
&amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;
&amp;lt;/dependency&amp;gt; --&amp;gt;
&amp;lt;dependency&amp;gt;
&amp;lt;groupId&amp;gt;org.springframework.boot&amp;lt;/groupId&amp;gt;
&amp;lt;artifactId&amp;gt;spring-boot-starter-test&amp;lt;/artifactId&amp;gt;
&amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;
&amp;lt;/dependency&amp;gt;

&amp;lt;dependency&amp;gt;
        &amp;lt;groupId&amp;gt;org.springframework.boot&amp;lt;/groupId&amp;gt;
        &amp;lt;artifactId&amp;gt;spring-boot-starter-tomcat&amp;lt;/artifactId&amp;gt;
        &amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;
    &amp;lt;/dependency&amp;gt;

    &amp;lt;dependency&amp;gt;
&amp;lt;groupId&amp;gt;org.slf4j&amp;lt;/groupId&amp;gt;
&amp;lt;artifactId&amp;gt;slf4j-api&amp;lt;/artifactId&amp;gt;
&amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;
&amp;lt;/dependency&amp;gt;
&amp;lt;dependency&amp;gt;
            &amp;lt;groupId&amp;gt;ch.qos.logback&amp;lt;/groupId&amp;gt;
            &amp;lt;artifactId&amp;gt;logback-classic&amp;lt;/artifactId&amp;gt;
            &amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;
&amp;lt;/dependency&amp;gt;
&amp;lt;dependency&amp;gt;
&amp;lt;groupId&amp;gt;ch.qos.logback&amp;lt;/groupId&amp;gt;
&amp;lt;artifactId&amp;gt;logback-core&amp;lt;/artifactId&amp;gt;
&amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;
&amp;lt;/dependency&amp;gt;
&amp;lt;/dependencies&amp;gt;
&amp;lt;build&amp;gt;
&amp;lt;plugins&amp;gt;
&amp;lt;plugin&amp;gt;
&amp;lt;groupId&amp;gt;org.springframework.boot&amp;lt;/groupId&amp;gt;
&amp;lt;artifactId&amp;gt;spring-boot-maven-plugin&amp;lt;/artifactId&amp;gt;
&amp;lt;/plugin&amp;gt;
&amp;lt;/plugins&amp;gt;
&amp;lt;resources&amp;gt;
        &amp;lt;resource&amp;gt;
            &amp;lt;directory&amp;gt;src/main/resources&amp;lt;/directory&amp;gt;
            &amp;lt;filtering&amp;gt;true&amp;lt;/filtering&amp;gt;
        &amp;lt;/resource&amp;gt;
    &amp;lt;/resources&amp;gt;
&amp;lt;/build&amp;gt;

&amp;lt;profiles&amp;gt;
&amp;lt;profile&amp;gt;
    &amp;lt;id&amp;gt;neo&amp;lt;/id&amp;gt;
    &amp;lt;properties&amp;gt;
        &amp;lt;activatedProperties&amp;gt;neo&amp;lt;/activatedProperties&amp;gt;
    &amp;lt;/properties&amp;gt;
    &amp;lt;activation&amp;gt;
        &amp;lt;activeByDefault&amp;gt;false&amp;lt;/activeByDefault&amp;gt;
    &amp;lt;/activation&amp;gt;
&amp;lt;/profile&amp;gt;
&amp;lt;profile&amp;gt;
    &amp;lt;id&amp;gt;cf&amp;lt;/id&amp;gt;
    &amp;lt;properties&amp;gt;
        &amp;lt;activatedProperties&amp;gt;cf&amp;lt;/activatedProperties&amp;gt;
    &amp;lt;/properties&amp;gt;
    &amp;lt;!--  &amp;lt;dependencies&amp;gt;
    &amp;lt;dependency&amp;gt;
&amp;lt;groupId&amp;gt;org.apache.derby&amp;lt;/groupId&amp;gt;
&amp;lt;artifactId&amp;gt;derby&amp;lt;/artifactId&amp;gt;
&amp;lt;scope&amp;gt;runtime&amp;lt;/scope&amp;gt;
&amp;lt;/dependency&amp;gt;
&amp;lt;/dependencies&amp;gt; --&amp;gt;
&amp;lt;dependencies&amp;gt;
        &amp;lt;dependency&amp;gt;
            &amp;lt;groupId&amp;gt;org.springframework.cloud&amp;lt;/groupId&amp;gt;
            &amp;lt;artifactId&amp;gt;spring-cloud-cloudfoundry-connector&amp;lt;/artifactId&amp;gt;
        &amp;lt;/dependency&amp;gt;

        &amp;lt;dependency&amp;gt;
            &amp;lt;groupId&amp;gt;org.springframework.cloud&amp;lt;/groupId&amp;gt;
            &amp;lt;artifactId&amp;gt;spring-cloud-spring-service-connector&amp;lt;/artifactId&amp;gt;
        &amp;lt;/dependency&amp;gt;

        &amp;lt;!-- &lt;A href="https://mvnrepository.com/artifact/com.sap.cloud.db.jdbc/ngdbc" target="test_blank"&gt;https://mvnrepository.com/artifact/com.sap.cloud.db.jdbc/ngdbc&lt;/A&gt; --&amp;gt;
&amp;lt;dependency&amp;gt;
    &amp;lt;groupId&amp;gt;com.sap.db.jdbc&amp;lt;/groupId&amp;gt;
&amp;lt;artifactId&amp;gt;ngdbc&amp;lt;/artifactId&amp;gt;
&amp;lt;version&amp;gt;1.102.0&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;

    &amp;lt;/dependencies&amp;gt;
    &amp;lt;activation&amp;gt;
        &amp;lt;activeByDefault&amp;gt;true&amp;lt;/activeByDefault&amp;gt;
    &amp;lt;/activation&amp;gt;
&amp;lt;/profile&amp;gt;
&amp;lt;/profiles&amp;gt;
&amp;lt;/project&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;As you can see from the logs, it says that create operation failed. Why is it so ?&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 03:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-create-tables-using-spring-boot-in-hana-hdi-container-without-cds/qaq-p/761958</guid>
      <dc:creator>boudhayan-dev</dc:creator>
      <dc:date>2019-02-28T03:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create tables using Spring boot in HANA HDI container without CDS artifact</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-create-tables-using-spring-boot-in-hana-hdi-container-without-cds/qaa-p/761959#M221230</link>
      <description>&lt;P&gt;If you are going to use hibernate to generate the DB artifacts then don’t use the HDI HANA service broker.  HDI requires all dB artifacts to be design time objects created by the HDI deployer.  If you want to use hibernate instead use the normal HANA Schema service broker  or even user provided service as you HANA connectivity.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 11:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-create-tables-using-spring-boot-in-hana-hdi-container-without-cds/qaa-p/761959#M221230</guid>
      <dc:creator>thomas_jung</dc:creator>
      <dc:date>2019-02-28T11:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create tables using Spring boot in HANA HDI container without CDS artifact</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-create-tables-using-spring-boot-in-hana-hdi-container-without-cds/qaa-p/761960#M221231</link>
      <description>&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;In SCP CF (Trial account) I could not find an option for the normal HANA schema service. It shows only Hana HDI service. Any other way to use it in CF ?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 13:08:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-create-tables-using-spring-boot-in-hana-hdi-container-without-cds/qaa-p/761960#M221231</guid>
      <dc:creator>boudhayan-dev</dc:creator>
      <dc:date>2019-02-28T13:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create tables using Spring boot in HANA HDI container without CDS artifact</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-create-tables-using-spring-boot-in-hana-hdi-container-without-cds/qaa-p/761961#M221232</link>
      <description>&lt;P&gt;Then I guess you will have to use the full service to this feature. &lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 13:34:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-create-tables-using-spring-boot-in-hana-hdi-container-without-cds/qaa-p/761961#M221232</guid>
      <dc:creator>thomas_jung</dc:creator>
      <dc:date>2019-02-28T13:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create tables using Spring boot in HANA HDI container without CDS artifact</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-create-tables-using-spring-boot-in-hana-hdi-container-without-cds/qaa-p/761962#M221233</link>
      <description>&lt;P&gt;The HANA Schema service broker is not available in cf  trial account. So you have to use HDI Service broker. From here on You have two options to execute DDLS in your hana db&lt;/P&gt;&lt;P&gt;1. If you just want to create the DDLs manually once and try out things, You can do it through Web IDE Database explorer. here is the link to the steps to configure database explorer on web IDE (you may want to skip a lot of stuff in the blog and directly jump to the Database explorer part)&lt;/P&gt;&lt;P&gt;&lt;A href="https://theremotetechie.com/2018/11/09/sap-cloud-foundry-tutorial-connect-a-java-servlet-to-a-hana-hdi-shared-instance-using-an-sap-cloud-foundry-trial-account/" target="test_blank"&gt;https://theremotetechie.com/2018/11/09/sap-cloud-foundry-tutorial-connect-a-java-servlet-to-a-hana-hdi-shared-instance-using-an-sap-cloud-foundry-trial-account/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. The Second Option, which I believe is the right way to do it, is by  defining your data model in cds artifacts and deploy those artifacts using HDI Deploy. here is a link of the HDI deploy documentaion &lt;BR /&gt;&lt;A href="https://github.wdf.sap.corp/xs2/hdideploy.js" target="test_blank"&gt;https://github.wdf.sap.corp/xs2/hdideploy.js&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 05:21:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-create-tables-using-spring-boot-in-hana-hdi-container-without-cds/qaa-p/761962#M221233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-03-01T05:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create tables using Spring boot in HANA HDI container without CDS artifact</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-create-tables-using-spring-boot-in-hana-hdi-container-without-cds/qaa-p/761963#M221234</link>
      <description>&lt;P&gt;Hana Schema service is available in CF int ?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 05:34:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-create-tables-using-spring-boot-in-hana-hdi-container-without-cds/qaa-p/761963#M221234</guid>
      <dc:creator>boudhayan-dev</dc:creator>
      <dc:date>2019-03-01T05:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create tables using Spring boot in HANA HDI container without CDS artifact</title>
      <link>https://community.sap.com/t5/technology-q-a/cannot-create-tables-using-spring-boot-in-hana-hdi-container-without-cds/qaa-p/761964#M221235</link>
      <description>&lt;P&gt;yes  @&lt;A href="https://answers.sap.com/users/411977/boudhayan-dev.html"&gt;Boudhayan Dev&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I can see that in cf int, the schema plan is available.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 09:31:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cannot-create-tables-using-spring-boot-in-hana-hdi-container-without-cds/qaa-p/761964#M221235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-03-10T09:31:04Z</dc:date>
    </item>
  </channel>
</rss>

