Skip to Content
0

sql syntax error: database name not allowed in single-container mode: line 1 col 13

Dec 05, 2016 at 10:15 AM

1.7k

avatar image
Former Member

Hi Everyone ,

I have a requirement to run the Java application (Mavan Hibernate) in Hana SP 12 server using Hana runtime Tomcat server .

So I am using ngdbc jar to connect the Java application to Hana database , so it was working fine

But when I created the table using model.hdbdd as entity ( <projectname>.data<foldername>::model.<table name>) and try to insert the table using Hibernate (java) application it showing me

database name not allowed in single-container mode

but when ,

I created table using Hana SQL editor and try to insert,update ,delete ,create data in to Hana scheme.table using Java application it is working fine

Now my concern why it was not working mode.hdbdd created table how can I used that hdbdd way created table .

Now the Problem is I have created some web service using XSJS and using model.hdbdd table and other some WS in Java and I need to update insert delete the same table .

Please help me on that

Thanks,

Sumit

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Feb 08, 2017 at 12:55 AM
1

Hi,

Bit of a late response :/. You need to wrap up your entity with

@Table( name = "\"foo.bar::again\"" ) //Escaped quotes.

public class Again implements Serializable{}

Schema defined on the connection pool:

<property name="currentschema" value="mySchema"/>

Hope this helps,

Mike.

Share
10 |10000 characters needed characters left characters exceeded