Configuring Persistence Unit Definition

Create persistence unit definition as described in Configuring Persistence Unit Definition section:

Copy-paste the following content in the InheritanceHierarchies/src/META-INF/persistence.xml file :


<?xml version="1.0" encoding="UTF-8"?>

<persistence>
	<persistence-unit name="inheritance">
		<jta-data-source>java:/DefaultDS</jta-data-source>
		<properties>
			<property name="hibernate.hbm2ddl.auto" value="create-drop" />
		</properties>
	</persistence-unit>
</persistence>

					

Now InheritanceHierarchies EJB 3.0 project should look like this:

InheritanceHierarchies EJB 3.0 project

Professional hosting     Belorussian informational portal         Free SCWCD 1.4 Study Guide     Free SCDJWS 1.4 Study Guide     SCDJWS 1.4 Quiz     Free IBM Certified Associate Developer Study Guide     IBM Test 000-287. Enterprise Application Development with IBM WebSphere Studio, V5.0 Study Guide     Free Mock Exam Engine