derby « Eclipse « JPA Q&A

1. 'ALTER TABLE' cannot be performed because table does not exist

I'm using JPA 2 with Eclipselink 2 and a Derby in memory db for my tests. When I start my little test programm I get the following exception:

[EL Warning]: ...

2. Maven and the " is not a known entity type" error

I generated a maven project with the quickstart archetype. So I obtained the following project structure:

|-- src
| |-- main
| | |-- java      
| | |-- resources ...

3. How can I use derby in memory with jpa2?

Regardless of the following persistence.xml configuration the database is persisted on disk.

  <persistence-unit name="com.mysimpatico_inmemory_persistence_nbm_1.0-SNAPSHOTPU" transaction-type="RESOURCE_LOCAL">
  <property name="javax.persistence.jdbc.url" value="jdbc:derby:memory:tempDb;create=true"/>
  <property name="javax.persistence.jdbc.password" value=""/>
  <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
  <property ...

4. Can't connect application to database

I have a problem connecting my Web app to the database using Eclipses datasource explorer. This is what I did: enter image description here Maybe i did configure wrong the driver. This ...

5. @SequenceGenerator with DerbyEmbedded Problem

I m actually trying to learn JPA, and i'm having some trouble with @SequenceGenerator.
I'm using the derby Embedded database with EclipseLink and I'm trying to apply the SequenceGenerator annotation to the ...