Java Reference
In-Depth Information
plexity, we would suggest referring to the latest chapter's pom.xml file and adding
just the new dependencies).
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.annotation</groupId>
<artifactId>jboss-annotations-api_1.1_spec</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.ejb</groupId>
<artifactId>jboss-ejb-api_3.1_spec</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.faces</groupId>
<artifactId>jboss-jsf-api_2.1_spec</artifactId>
<scope>provided</scope>
</dependency>
Cooking entities
Now that we're done with the tedious configuration part, we will add our entities to the
project. Some valuable options exist for auto-generating our entities, starting with the
database schema. For example, Eclipse's File menu includes an option JPA Entit-
ies from Table that (once a connection has been set up to the database) allows re-
versing your DB schema (or part of it) into Java entities.
Search WWH ::




Custom Search