1. Quite often, we need to test dao in our project.
And derby is a good choice for this specific purpose.
2. Installation:
1) DTP Installation
Help->Install New Software...
2) Download Derby JDBC JAR
1> In Non-maven project
We need to download the latest derby jar from the official download link.
2> In Maven project
We need to include derby jar in pom file
<dependency> <groupId>org.apache.derby</groupId> <artifactId>derby</artifactId> <version>10.10.1.1</version> </dependency>
3) Register Derby JDBC Driver
1> Window->Open Perspective->Other->Database Development
2> Database Connections->New...
Extensions:
1> How to delete Driver/Connection Profiles?
Window->Preferences->Data Management->Connectivity->Driver Definitions
2> Sometimes after we added a connection, we may encounter exception like this:
Failed to create database 'C:\Program Files\MyApp\myDB', see the next exception for details.
To me, it is because there is already a directory "c:/Program Files/MyApp/myDB" exists.
1> Remove Driver Definitions and connection profiles.
2> Close eclipse, and restart computer(To dissolve the occupation of myDB directory).
3> Delete myDB directory.
4> Start Eclipse, and then create connection profiles.
The exception just disappeared.
Reference Links:
1) http://www.vogella.com/articles/EclipseDataToolsPlatform/article.html#dtpintro_dtp Introduction how to enable DTP and integrate Derby.
2) http://download.eclipse.org/releases/kepler The DTP URL.
3) http://db.apache.org/derby/derby_downloads.html Download for Derby JAR.
4) http://www.binarytides.com/create-autoincrement-columnfield-in-apache-derby/ Simple Auto-increment Primary Key DDL Definition.
5) http://stackoverflow.com/questions/4999106/fail-to-create-embedded-derby-java Possible other solution for db creation exception.
6) http://www.eclipse.org/forums/index.php/t/14650/ Possible other solution for db creation exception.
相关推荐
How to integrate and start using graphics How to animate graphics How to integrate and use game controllers How to add sound and bit-mapped graphics How to build grid-based games Audience This book ...
### 如何在MICROSAR中集成End-to-End保护 #### 概述 本文档旨在指导用户如何在VECTOR AUTOSAR软件MICROSAR中集成End-to-End (E2E)保护功能。E2E保护是一项重要的安全措施,用于确保在汽车电子控制单元(ECU)之间的...
【整合BIEE与Oracle SSO门户的详细步骤】 在企业级IT环境中,实现单点登录(SSO)是提高用户便利性和系统安全性的重要手段。本文档将详细讲解如何将Oracle Business Intelligence Enterprise Edition(BIEE)与...
This book is about how to integrate full-stack open source big data architecture and how to choose the correct technology―Scala/Spark, Mesos, Akka, Cassandra, and Kafka―in every layer. Big data ...
《集成E2E在MICROSAR中的技术参考》 本文档详细介绍了如何在基于AUTOAR 4.2的MICROSAR环境中实现端到端(E2E)保护,主要涉及两种方案:E2E Protection Wrapper(E2E保护包装器)和E2E Transformer(E2E转换器)。...
- **Version Control Integration**: How to integrate version control systems like Git or Subversion directly into Eclipse for seamless source code management. **Chapter 5: Building with Ant** - **...
Get to grips with how Eclipse can be used to develop web-based Java applications that employ Java Servlets and JavaServer Pages ☆ 出版信息:☆ [作者信息] Vinicius H.S. Durelli , Rodrigo Fraxino ...
This chapter explores how to integrate SQL statements within PL/SQL blocks: - **Cursor Usage**: How cursors work and different types of cursors, including implicit and explicit cursors. - **Dynamic ...
How to integrate with Hikvision LPR function via ISAPI
This book is about how to integrate full-stack open source big data architecture and how to choose the correct technology―Scala/Spark, Mesos, Akka, Cassandra, and Kafka―in every layer. Big data ...
Essentially three books in one, readers not only profit from extensive introductions to the core features of each technology, but also learn how to effectively integrate the two in order to build ...
Get started with Kendo UI Mobile and learn how to integrate it with HTTP based services built using ASP NET Web API Overview Learn the basics of developing mobile applications using ...
Essentially three books in one, readers not only profit from extensive introductions to the core features of each technology, but also learn how to effectively integrate the two in order to build ...
This book will teach you how to use the Spring Framework to build Java-based applications, web applications, and microservices. You’ll see how Spring has drastically and positively affected the way ...
You are going to learn how to integrate and use Redux DevTools to debug applications, and access external APIs with Redux. You are also going to get acquainted with writing tests for all elements of ...
Paperback: 250 pages Publisher: Packt Publishing (November 27, 2015) Language: English ...Learn how to integrate Artificial Intelligence (AI) into your game for sophisticated and engaging gameplay
本文档讲述了如何将K2和UiPath两个自动化平台进行集成。K2是一个业务流程管理(BPM)和工作流程自动化解决方案,而UiPath是一个领导级的机器人流程自动化(RPA)软件公司。集成这两个平台可以让用户通过K2表单或工作流程...