jdbc ucanaccesssqlexception ucaexc ::: 4.0 4 unexpected token: DOCTOR

后端 未结 1 699
难免孤独
难免孤独 2021-01-29 13:17

I am using netbeans with java classes to fetch data from access database tables and display it on jtable. When I followed all the steps it gives me the ucanaccess error as net u

相关标签:
1条回答
  • 2021-01-29 13:23

    I assume:

    1. you are using JPA
    2. you set delimited-identifiers
    3. you also are using EclipseLink as implementation.

    If so, do as follows:

    Include a target-database entry in persistence.xml:

        <property name="eclipselink.target-database" value="org.eclipse.persistence.platform.database.AccessPlatformDelimiterConfig"/>
    

    Add a new class to your classpath:

    package org.eclipse.persistence.platform.database;
    
    public class AccessPlatformDelimiterConfig extends AccessPlatform {
    
        private static final long serialVersionUID = 7034590043310425678L;
    
        public AccessPlatformDelimiterConfig() {
            super();
            this.tableQualifier = "";
            this.startDelimiter = "";
            this.endDelimiter = "";
        }
    }
    
    0 讨论(0)
提交回复
热议问题