The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 An Introduction to Java Persistence for Client-Side Developers
Subject:  Getting this working on Derby with Netbeans
Date:  2006-07-18 08:11:52
From:  joshy
Response to: Getting this working on Derby with Netbeans


This is great Rick. Thank's for posting this. I've requoted the config below in a pre tag:


<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
  <persistence-unit name="sample" transaction-type="RESOURCE_LOCAL">
    <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
    <class>addressbook.Person</class>  
    <properties>
      <property name="toplink.jdbc.user" value="****"/>
      <property name="toplink.jdbc.password" value="****"/>
      <property name="toplink.jdbc.url" value="jdbc:derby://localhost:1527/sample"/>
      <property name="toplink.jdbc.driver" value="org.apache.derby.jdbc.ClientDriver"/>
      <property name="toplink.ddl-generation" value="create-tables"/>
    </properties>
  </persistence-unit>
</persistence>

 Feed java.net RSS Feeds