Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » EclipseLink with Ucanaccess driver(EclipseLink table creation fail with ucanaccess driver)
EclipseLink with Ucanaccess driver [message #1481984] Fri, 21 November 2014 11:32
Vilson Balestero is currently offline Vilson BalesteroFriend
Messages: 1
Registered: November 2014
Junior Member
I trying ucanaccess directly, but now I want use it with eclipselink JPA, but when JPA tries to auto creates the database from class, I got this error below:
[EL Info]: 2014-11-20 17:11:45.286--ServerSession(2070572804)--EclipseLink, version: Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd
[EL Info]: connection: 2014-11-20 17:11:48.216--ServerSession(2070572804)--file:/D:/_DeveloperStudy/_Java/MavenProjects/smar-projects/drawingfx/target/classes/_MSAccessDB_url=jdbc:ucanaccess://C:\Users\vilson_balestero\SerializerTest.mdb;newDatabaseVersion=V2000 login successful
[EL Warning]: 2014-11-20 17:11:49.658--ServerSession(2070572804)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: net.ucanaccess.jdbc.UcanaccessSQLException: Please, use a simple Statement(and not a PreparedStatement)to execute DDL(e.g.,CREATE TABLE)
Error Code: 15000
Call: CREATE TABLE Drawing_Pages (ID INTEGER NOT NULL, Name VARCHAR(255), Number INTEGER, Title VARCHAR(255), PRIMARY KEY (ID))
Query: DataModifyQuery(sql="CREATE TABLE Drawing_Pages (ID INTEGER NOT NULL, Name VARCHAR(255), Number INTEGER, Title VARCHAR(255), PRIMARY KEY (ID))")
Please someone can help me?
NOTE: sorry by my english.
Previous Topic:Lazy OneToOne Relationship traversed on Insert
Next Topic:Why do subqueries with nested properties in EclipseLink always produce unnecessary/redundant joins?
Goto Forum:
  


Current Time: Thu Apr 25 23:11:36 GMT 2024

Powered by FUDForum. Page generated in 0.03211 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top