<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Create a Connection Identifier</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520a%2520Connection%2520Identifier/</link><description>Recent changes to Create a Connection Identifier</description><atom:link href="https://sourceforge.net/p/do-db/wiki/Create%20a%20Connection%20Identifier/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 07 Mar 2016 06:24:34 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/do-db/wiki/Create%20a%20Connection%20Identifier/feed" rel="self" type="application/rss+xml"/><item><title>Create a Connection Identifier modified by Ralph</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520a%2520Connection%2520Identifier/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -1,6 +1,7 @@
-How to create a connection identifier to connect to a database using EclipseLink?
+A connection identifier is used to create a connection to the database.
+EclipseLink uses the file META-INF/persistence.xml as usual in JPA to setup the connection properties.

-Create a file persistence.xml in folder META-INF of your project:
+Create a file *persistence.xml* in folder META-INF of your project:

 ~~~~
 
@@ -22,7 +23,9 @@
 &amp;lt;/persistence&amp;gt; 
 ~~~~

-This file names the class **de.hoppe.extra.model.Person** under control of EclipseLink.
+The JDBC driver is from Oracle. Please use the appropriate JDBC driver for MySQL, HSQL, Progress or the database you are using.
+This file names only the class **de.hoppe.extra.model.Person** under control of EclipseLink.
+Do not forget to add additional classes if needed.

 -----

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph</dc:creator><pubDate>Mon, 07 Mar 2016 06:24:34 -0000</pubDate><guid>https://sourceforge.net72adf1f1b4a0e45e32379b6204b842739a201055</guid></item><item><title>Create a Connection Identifier modified by Ralph</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520a%2520Connection%2520Identifier/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -22,7 +22,7 @@
 &amp;lt;/persistence&amp;gt; 
 ~~~~

-This file names the class com.tcs.model.Contract under control of EclipseLink.
+This file names the class **de.hoppe.extra.model.Person** under control of EclipseLink.

 -----

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph</dc:creator><pubDate>Wed, 24 Feb 2016 06:25:52 -0000</pubDate><guid>https://sourceforge.net47a8ede442efea2dbd564bd1f2fe001f512d7056</guid></item><item><title>Create a Connection Identifier modified by Ralph</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520a%2520Connection%2520Identifier/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -8,7 +8,7 @@
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
    version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"&amp;gt;
    &amp;lt;persistence-unit name="default" transaction-type="RESOURCE_LOCAL"&amp;gt;
-       &amp;lt;class&amp;gt;com.tcs.model.Contract&amp;lt;/class&amp;gt;
+       &amp;lt;class&amp;gt;de.hoppe.extra.model.Person&amp;lt;/class&amp;gt;
        &amp;lt;exclude-unlisted-classes&amp;gt;true&amp;lt;/exclude-unlisted-classes&amp;gt;
        &amp;lt;properties&amp;gt;
            &amp;lt;property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver"/&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph</dc:creator><pubDate>Thu, 11 Feb 2016 17:00:44 -0000</pubDate><guid>https://sourceforge.net77e22c72cfaa7f0235480d48d35cfb3807e4b37e</guid></item><item><title>Create a Connection Identifier modified by Ralph</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520a%2520Connection%2520Identifier/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -8,8 +8,7 @@
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
    version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"&amp;gt;
    &amp;lt;persistence-unit name="default" transaction-type="RESOURCE_LOCAL"&amp;gt;
-       &amp;lt;class&amp;gt;com.tcs.model.TransportAgreement&amp;lt;/class&amp;gt;
-       &amp;lt;class&amp;gt;com.tcs.model.TransportAgreementVersion&amp;lt;/class&amp;gt;
+       &amp;lt;class&amp;gt;com.tcs.model.Contract&amp;lt;/class&amp;gt;
        &amp;lt;exclude-unlisted-classes&amp;gt;true&amp;lt;/exclude-unlisted-classes&amp;gt;
        &amp;lt;properties&amp;gt;
            &amp;lt;property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver"/&amp;gt;
@@ -23,7 +22,7 @@
 &amp;lt;/persistence&amp;gt; 
 ~~~~

-This file names two classes under control of EclipseLink.
+This file names the class com.tcs.model.Contract under control of EclipseLink.

 -----

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph</dc:creator><pubDate>Fri, 05 Feb 2016 14:54:53 -0000</pubDate><guid>https://sourceforge.nete59f9bd2665d48022b10bccc8fbd7e12860e92c9</guid></item><item><title>Create a Connection Identifier modified by Ralph</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520a%2520Connection%2520Identifier/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph</dc:creator><pubDate>Fri, 05 Feb 2016 11:27:51 -0000</pubDate><guid>https://sourceforge.neta454e2d01c987aa8c742c469a405452bc66eb0c6</guid></item><item><title>Create an Connection Identifier modified by Ralph</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520an%2520Connection%2520Identifier/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph</dc:creator><pubDate>Fri, 05 Feb 2016 11:27:18 -0000</pubDate><guid>https://sourceforge.net00ce9c54512c6dc92f0226da3d36f75926545d82</guid></item><item><title>Create an Connection Identifiers modified by Ralph</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520an%2520Connection%2520Identifiers/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -27,4 +27,4 @@

 -----

-Next step is to [Create the entities].
+Next step is to [Create an Entity].
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph</dc:creator><pubDate>Fri, 05 Feb 2016 11:26:12 -0000</pubDate><guid>https://sourceforge.net69e79cf1de3ac37bd1a290dabed58b24b98f134f</guid></item><item><title>Create connection identifiers modified by Ralph</title><link>https://sourceforge.net/p/do-db/wiki/Create%2520connection%2520identifiers/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;How to create a connection identifier to connect to a database using EclipseLink?&lt;/p&gt;
&lt;p&gt;Create a file persistence.xml in folder META-INF of your project:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="cp"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;persistence&lt;/span&gt; &lt;span class="na"&gt;xmlns:xsi=&lt;/span&gt;&lt;span class="s"&gt;"http://www.w3.org/2001/XMLSchema-instance"&lt;/span&gt;
    &lt;span class="na"&gt;xsi:schemaLocation=&lt;/span&gt;&lt;span class="s"&gt;"http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"&lt;/span&gt;
    &lt;span class="na"&gt;version=&lt;/span&gt;&lt;span class="s"&gt;"2.0"&lt;/span&gt; &lt;span class="na"&gt;xmlns=&lt;/span&gt;&lt;span class="s"&gt;"http://java.sun.com/xml/ns/persistence"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;persistence-unit&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"default"&lt;/span&gt; &lt;span class="na"&gt;transaction-type=&lt;/span&gt;&lt;span class="s"&gt;"RESOURCE_LOCAL"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;class&amp;gt;&lt;/span&gt;com.tcs.model.TransportAgreement&lt;span class="nt"&gt;&amp;lt;/class&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;class&amp;gt;&lt;/span&gt;com.tcs.model.TransportAgreementVersion&lt;span class="nt"&gt;&amp;lt;/class&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;exclude-unlisted-classes&amp;gt;&lt;/span&gt;true&lt;span class="nt"&gt;&amp;lt;/exclude-unlisted-classes&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;properties&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;property&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"javax.persistence.jdbc.driver"&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"oracle.jdbc.OracleDriver"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="c"&gt;&amp;lt;!-- EclipseLink should NOT create the database schema --&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;property&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"eclipselink.ddl-generation"&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"none"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;property&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"eclipselink.target-database"&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"Auto"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;property&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"eclipselink.target-server"&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"none"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/properties&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;/persistence-unit&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/persistence&amp;gt;&lt;/span&gt; 
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;This file names two classes under control of EclipseLink.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;Next step is to &lt;span&gt;[Create the entities]&lt;/span&gt;.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph</dc:creator><pubDate>Fri, 05 Feb 2016 10:47:32 -0000</pubDate><guid>https://sourceforge.net6145e762a33592c2549da00da3a924343cb1511b</guid></item></channel></rss>